Contents

coordinate

The geographical coordinate information.

Declaration

var coordinate: CLLocationCoordinate2D { get }

Discussion

When running in the simulator, Core Location uses the values provided to it by the simulator. You must run your application on an iOS-based device to get the actual location of that device.

Special Considerations

In iOS, this property is declared as nonatomic. In macOS, it is declared as atomic.

See Also

Getting the location attributes