---
title: heading
framework: coremotion
role: symbol
role_heading: Instance Property
path: coremotion/cmdevicemotion/heading
---

# heading

The heading angle (measured in degrees) relative to the current reference frame.

## Declaration

```swift
var heading: Double { get }
```

## Discussion

Discussion This property contains a value in the range of 0.0 to 360.0 degrees. This value is available only when the frame of reference is xMagneticNorthZVertical or xTrueNorthZVertical. If the reference frame is xArbitraryZVertical or xArbitraryCorrectedZVertical, this property contains a negative number to indicate the heading is invalid.
