---
title: x
framework: corelocation
role: symbol
role_heading: Instance Property
path: corelocation/clheading/x
---

# x

The geomagnetic data (measured in microteslas) for the x-axis.

## Declaration

```swift
var x: CLHeadingComponentValue { get }
```

## Discussion

Discussion This value represents the x-axis deviation from the magnetic field lines being tracked by the device.

## See Also

### Getting the raw heading data

- [y](corelocation/clheading/y.md)
- [z](corelocation/clheading/z.md)
- [CLHeadingComponentValue](corelocation/clheadingcomponentvalue.md)
