title: Swift 3.0: Store array in UserDefaults for tableView
body: <p>I'm attempting to store an array in UserDefaults yet have had no luck in finding a solution. I have a <code>struct</code> and <code>func</code> set up that work to store "name" and "description" in an array. The code is as follows...</p>
  
  <pre><code>struct task {
      var name = "Untitled"
      var description = "No description available"
  }
  
  var tasks = [task]()
  
  func addTask(name: String, description: String) {
      tasks.append(task(name: name, description: description))
  }
  </code></pre>
  
  <p>What's the best way to store the data in UserDefaults and add the information to <code>cell.textLabel?.text</code> and <code>cell.detailTextLabel?.text</code> after a relaunch?</p>