The city associated with the placemark.
SDKs
- iOS 5.0+
- macOS 10.8+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Location
Declaration
var locality: String? { get }
Discussion
If the placemark location is Apple’s headquarters, for example, the value for this property would be the string “Cupertino”.