I recently moved from Objective-C to Swift, and I'm having an issue with the following example:
var test: [[String: AnyObject]] = [["value": true]]
var aaa: [String: AnyObject] = test[0]
print(aaa["value"]) // prints Optional(1)
aaa["value"] = false
print(aaa["value"]) // prints Optional(0)
var bbb: [String: AnyObject] = test[0]
print(bbb["value"]) // prints Optional(1) again???
How come the change is not stored in the test array?
Thank you.