I tried something like this:
var description:String = "Custom Text"
map.userLocation.description = description
or
var description:String = "Custom Text"
map.userLocation.description(description)
But both are wrong, I'm not sure how to do that. Moreover, Apple documentation isn't really helpful about this description method.
There is no description
property of the userLocation
property. In this context, the description
method you're seeing is the base one inherited from NSObject
, used when you log an object. I believe you want the userLocation
's title
property.