I want to add value to an empty array by looping another array's value
var Person : [String:String]
var data : [String:String] = [
"name" : "John",
"age" : "22"
]
for (index, value) in data {
Person[index] = value
}
And I got this error "variable Person passed by reference before being initialized"
Why is that?