Syntax
- desiredAccuracy
- distanceFilter
- requestLocation()
- startUpdatingLocation()
- allowDeferredLocationUpdates(untilTraveled:timeout:)
- startMonitoringSignificantLocationChanges()
- allowDeferredLocationUpdates(untilTraveled:timeout:)
- authorizedAlways
- authorizedWhenInUse
- locationManager(_:didChangeAuthorization:)
Remarks
- Run the app from Xcode.
- In the debug bar, click the “Simulate location” button.
- Choose a location from the menu.