In my old Swift 1 code I could do this:
class MyArrayLists {
var myarray = [String, String]
init(){
myarray.append("First String", "Second String.")
}
}
Now after getting around to opening my code and trying to convert it to 2.1, it's telling me I can't do this anymore. Next to the declaration we see:
Expected member name or constructor call
Next to the append statement I see:
Cannot invoke append with argument of type (String, String)
What changed?