Contents

CLBodyIdentifiable

A type that identifies a physical body or view for heading calculations.

Declaration

protocol CLBodyIdentifiable : NSObjectProtocol

Overview

Adopt this protocol to identify a custom body, or pass a conforming view, such as a UIKit UIView, to associate heading updates with your app’s user interface. When you set headingBody to an object conforming to CLBodyIdentifiable, Core Location calculates compass heading relative to that view rather than the device’s physical orientation.

Passing a view to headingBody lets your app receive heading data that aligns with your user interface during orientation changes, when running in Stage Manager or Split View on iPad or iPhone Duo.

See Also

Compass headings