I've been playing around with Swift, and just came across an issue. I have the following Dictionary in:
var locations:Dictionary<String,CLLocationCoordinate2D> = ["current":CLLocationCoordinate2D(latitude: lat, longitude: lng) ];
println("current locaition is \(locations["current"])")
but the compiler is complaining about double quotes around current
which represent the a key in my dictionary.
I tried escaping it with \
but it wasn't the right way.
Appreciate any help.