title: Appending to UserDefaults Array (Swift)
body: <p>I want to create an array of Ints that I can append to and will be saved to <code>UserDefaults</code> so that next time the user opens the app, the array will be saved. So, I know how to create a <code>UserDefaults</code> array...</p>
  
  <pre><code>var intArray = UserDefaults.standard.array(forKey: "intArray") as! [Int]
  </code></pre>
  
  <p>and I know how to set the array to an already existing array:</p>
  
  <pre><code>var array = [2, 6, 34, 4, 9]
  UserDefaults.standard.set(array, forKey: "intsArray")
  </code></pre>
  
  <p>But, I need the array to be empty and then the user adds Ints to the array. Thanks for your help!</p>