CMBodyIdentifiable
A type that identifies a physical body or view for device-motion calculations.
Declaration
protocol CMBodyIdentifiable : NSObjectProtocolOverview
Adopt this protocol or use a conforming system type to associate motion sensor updates with a specific view or display. When you set deviceMotionBody to an object conforming to CMBodyIdentifiable, Core Motion automatically calculates motion data, such as 3D orientation and rotation rate, relative to that view rather than the device’s physical coordinate system.
In UIKit, UIView conforms to this protocol. Passing a view to deviceMotionBody lets your app receive motion data that aligns with your user interface during orientation changes, when running in Stage Manager or Split View on iPad or iPhone Duo.