Prepare For Segue With Array - Xcode 8.0 Swift 3.0
What is the best way to add an item to an array on one VC and then use "prepare for segue" to transfer the array to another VC? So far this is what I have managed to come up with: (VC1) var items: [String] = ["Hello"] (VC2): override func prepare(for segue: UIStoryboardSegue, sender: Any?) { var destViewController: ViewController = segue.destination as! ViewController destViewController.items = [textField.text!] items.append(textField.text!) } On VC2 an error is coming up that states, "use of unresolved identifier" on the line items.append(textField.text!) I am pretty new to iOS/Swift but I