Instance Property

name

The descriptive name associated with the map item.

Declaration

var name: String? { get set }

Discussion

Use this property to specify the name associated with the location. For example, if there is a business at the specified location, you would use this property to specify the name of the business.

If this map item represents the user’s current location, the value in property is set to a localized version of “Current Location”.

See Also

Accessing the Map Item Attributes

var placemark: MKPlacemark

The placemark object containing the location information.

var pointOfInterestCategory: MKPointOfInterestCategory?

The point of interest category for the map item.

var isCurrentLocation: Bool

A Boolean value indicating whether the map item represents the user’s current location.

var phoneNumber: String?

The phone number associated with a business at the specified location.

var url: URL?

The URL associated with the specified location.

var timeZone: TimeZone?

The time zone of the specified location.