CMAcceleration
struct CMAcceleration
-
Returns the device orientation as calculated from the 3-axis acceleration data.
This property allows you to determine the physical orientation of the device from an acceleration measurement provided by an
AccelerometerMonitorinstance. There is one important case where you might choose to use this technique rather than directly monitor device orientation changes with anOrientationMonitorinstance—when rotation is locked on the device.Declaration
Swift
var deviceOrientation: UIDeviceOrientation { get }
View on GitHub
Install in Dash
CMAcceleration Extension Reference