I'm trying to use the following method from Swift project with a given reference frame but getting an error "Type 'CMAttitudeReferenceFrame' has no member 'CMAttitudeReferenceFrameXArbitraryCorrectedZVertical'"

manager.startDeviceMotionUpdates(using: CoreMotion.CMAttitudeReferenceFrame.CMAttitudeReferenceFrameXArbitraryCorrectedZVertical, to: .main)

Ideas?

1 Answers

0
bhartsb On
manager.startDeviceMotionUpdates(using: CoreMotion.CMAttitudeReferenceFrame.xArbitraryCorrectedZVertical, to: .main)