ComposableCoreMotion Documentation

Structure Motion​Manager.​Properties

public struct Properties  

Member Of

MotionManager

A wrapper around Core Motion's CMMotionManager that exposes its functionality through effects and actions, making it easy to use with the Composable Architecture, and easy to test.

Initializers

init(accelerometer​Update​Interval:​device​Motion​Update​Interval:​gyro​Update​Interval:​magnetometer​Update​Interval:​shows​Device​Movement​Display:​)

public init(
        accelerometerUpdateInterval: TimeInterval? = nil,
        deviceMotionUpdateInterval: TimeInterval? = nil,
        gyroUpdateInterval: TimeInterval? = nil,
        magnetometerUpdateInterval: TimeInterval? = nil,
        showsDeviceMovementDisplay: Bool? = nil
      )  

Properties

accelerometer​Update​Interval

public var accelerometerUpdateInterval: TimeInterval? 

device​Motion​Update​Interval

public var deviceMotionUpdateInterval: TimeInterval? 

gyro​Update​Interval

public var gyroUpdateInterval: TimeInterval? 

magnetometer​Update​Interval

public var magnetometerUpdateInterval: TimeInterval? 

shows​Device​Movement​Display

public var showsDeviceMovementDisplay: Bool?