Recorded

Changes in this version

Importance not yet assessed.

Adds guidance for touch input on Macs with a touch display across macOS pages

No section of this page changed in this version.

Other pages in this version: 18 sections on 6 pages. All pages changed in v35

Summaries are written automatically and may be wrong; the diff below is the record.

Gyroscope and accelerometer

You can use accelerometer and gyroscope data to provide experiences based on real-time, motion-based information in apps and games that run in iOS, iPadOS, and watchOS. tvOS apps can use gyroscope data from the Siri Remote. For developer guidance, see Core Motion.

Best practices

Use motion data only to offer a tangible benefit to people. For example, a fitness app might use the data to provide feedback about people’s activity and general health, and a game might use the data to enhance gameplay. Avoid gathering data simply to have the data.

Outside of active gameplay, avoid using accelerometers or gyroscopes for the direct manipulation of your interface. Some motion-based gestures may be difficult to replicate precisely, may be physically challenging for some people to perform, and may affect battery usage.

Platform considerations

No additional considerations for iOS, iPadOS, macOS, tvOS, visionOS, or watchOS.

Resources

Feedback

Developer documentation

Getting processed device-motion data — Core Motion

Videos