Type Safely

Type Safely

Determine Device Rotation With Raw Gyroscope Data

Daily Coding Tip 230

Type Safely's avatar
Type Safely
Jan 15, 2023
∙ Paid
white Audi vehicle with gray wheels
Photo by Chinmay Jade on Unsplash

Unlike the accelerometer, which detects changes in acceleration such as shaking your phone, the gyroscope detects how much the device has been rotated. Apple doesn’t actually recommend using the raw output from the gyroscope, stating this in the documentation:

The raw rotation rate data delivered by the gyroscope interfac…

User's avatar

Continue reading this post for free, courtesy of Type Safely.

Or purchase a paid subscription.
© 2026 Type Safely · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture