InterfaceOrientationProvider

@available(iOS, deprecated: 13)
public protocol InterfaceOrientationProvider

A protocol that supplies current interface orientation for the specified view.

Use this protocol when the map view is used in non-application target (e.g. application extension target).

  • Asks the provider for the interface orientation of the provided view.

    When a device is rotated map view passes current interface orientation to its location producer in order to ensure heading is displayed correctly.

    Declaration

    Swift

    func interfaceOrientation(for view: UIView) -> UIInterfaceOrientation?

    Parameters

    view

    The view to get interface orientation from.

    Return Value

    The interface orientation for the provided view.