---
title: "locationManager(_:didUpdateHeading:)"
framework: corelocation
role: symbol
role_heading: Instance Method
path: "corelocation/cllocationmanagerdelegate/locationmanager(_:didupdateheading:)"
---

# locationManager(_:didUpdateHeading:)

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

## Declaration

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

## Parameters

- `manager`: The location manager object that generated the update event.
- `newHeading`: The new heading data.

## Mentioned in

Getting heading and course information

## Discussion

Discussion 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

### Receiving heading updates

- [locationManagerShouldDisplayHeadingCalibration(_:)](corelocation/cllocationmanagerdelegate/locationmanagershoulddisplayheadingcalibration(_:).md)
