title: How to store arrays of tuples in swift
body: <p>I am making an app, and i have to store the data of four arrays (of type [(Double, Double)] and a triple og type (String, String, String). They are declared in the following class</p>
  
  <pre><code>class DataStorer {
      static var losArray = [(Double, Double)]()
      static var morgenArray = [(Double, Double)]()
      static var middagArray = [(Double, Double)]()
      static var aftenArray = [(Double, Double)]()
      static var lastMeal = ("", "", "")
  }
  </code></pre>
  
  <p>I need to archive them when the app is closed (or other things happen, like a call), and to retrieve the data when the app needs to. The arrays have a maximum length of 18. How do i do that?</p>