Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Reads device motion, pedometer, activity, altitude, headphone, batched-workout, and submersion sensor data via Core Motion.
86% 100%+14 ptsof test cases passed
Passed 22 of 22 test cases with the skill, and 19 of 22 without it.
I am updating a standard UI component orientation indicator based on accelerometer motion. What update interval frequency should I configure on CMMotionManager to conserve battery?
Recommends setting accelerometerUpdateInterval to 10 Hz (0.1 seconds).
3 of 3 safety checks passed
Read device motion, pedometer/activity, altitude, headphone, batched-workout, and submersion sensors with Core Motion. Scope: Swift 6.3, iOS 26+.
Add NSMotionUsageDescription to Info.plist with a user-facing string explaining
why your app needs motion data. Without this key, the app crashes on first access.
<key>NSMotionUsageDescription</key>
<string>This app uses motion data to track your activity.</string>
Use the matching manager's authorizationStatus() or authorizationStatus
property when an API exposes one (CMPedometer, CMMotionActivityManager,
CMAltimeter, headphone motion, batched sensors, and submersion). Raw
CMMotionManager accelerometer/gyro/device-motion streams have no explicit
authorization request API; still ship the usage string and handle errors from
start/update callbacks.
Next to this one in the catalogue, plus more from the same author.