Instance Property

distanceFilter

The minimum distance (measured in meters) a device must move horizontally before an update event is generated.

Declaration

var distanceFilter: CLLocationDistance { get set }

Discussion

This distance is measured relative to the previously delivered location. Use the value kCLDistanceFilterNone to be notified of all movements. The default value of this property is kCLDistanceFilterNone.

This property is used only in conjunction with the standard location services and is not used when monitoring significant location changes.

Special Considerations

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