I made an .append to an array like this:
@IBOutlet var textField: UITextField? = nil
var array = ["item1", "item2", "item3"]
@IBAction func buttonPressed(_ sender: Any) {
array.append((textField?.text?.lowercased())!)
}
This works good, but how could I save the appended strings even when the app will be closed?