Xcode – Changing value in Dictionary in a Array in UserDefaults
I have a problem changing the value of a Dictionary in a Array var array = (defaults.array(forKey: "Transactions")! as! [Dictionary<String, Any>]) (array.reversed()[index]["Title"] as! String) = titleTextField.text! // Cannot assign to immutable expression of type 'String' Cannot assign to immutable expression…