Best practices
Use motion data only to offer a tangible benefit to people.
Outside of active gameplay, avoid using accelerometers or gyroscopes for the direct manipulation of your interface.
For the complete guidance, including worked examples and illustrations, see the canonical page: https://developer.apple.com/design/human-interface-guidelines/gyro-and-accelerometer