Instance Method


Tells the delegate that the location manager received updated heading information.


optional func locationManager(_ manager: CLLocationManager, didUpdateHeading newHeading: CLHeading)



The location manager object that generated the update event.


The new heading data.


Implementation of this method is optional but expected if you start heading updates using the startUpdatingHeading() method.

The location manager object calls this method after you initially start the heading service. Subsequent events are delivered when the previously reported value changes by more than the value specified in the headingFilter property of the location manager object.

See Also

Responding to Heading Events

func locationManagerShouldDisplayHeadingCalibration(CLLocationManager) -> Bool

Asks the delegate whether the heading calibration alert should be displayed.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software