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

# attitude

The attitude of the device.

## Declaration

```swift
var attitude: CMAttitude { get }
```

## Discussion

Discussion A CMAttitude object represents a measurement of attitude—that is, the orientation of a body relative to a given frame of reference.

## See Also

### Related Documentation

- [Event Handling Guide for UIKit Apps](apple-archive/documentation/EventHandling/Conceptual/EventHandlingiPhoneOS.md)

### Getting Attitude and Rotation Rate

- [rotationRate](coremotion/cmdevicemotion/rotationrate.md)
