CarPlayNavigationViewController

@available(iOS 12.0, *)
open class CarPlayNavigationViewController : UIViewController
extension CarPlayNavigationViewController: StyleManagerDelegate
extension CarPlayNavigationViewController: NavigationServiceDelegate
extension CarPlayNavigationViewController: NavigationMapViewDelegate

CarPlayNavigationViewController is a fully-featured turn-by-turn navigation UI for CarPlay.

  • A view indicating what direction the vehicle is traveling towards, snapped to eight cardinal directions in steps of 45°.

    This view is hidden by default.

    Declaration

    Swift

    public weak var compassView: CarPlayCompassView!
  • A view that displays the current speed limit.

    Declaration

    Swift

    public weak var speedLimitView: SpeedLimitView!
  • The interface styles available for display.

    These are the styles available to the view controller’s internal StyleManager object. In CarPlay, Style objects primarily affect the appearance of the map, not guidance-related overlay views.

    Declaration

    Swift

    public var styles: [Style] { get set }
  • Controls whether the main route style layer and its casing disappears as the user location puck travels over it. Defaults to false.

    If true, the part of the route that has been traversed will be rendered with full transparency, to give the illusion of a disappearing route. To customize the color that appears on the traversed section of a route, override the traversedRouteColor property for the NavigationMapView.appearance().

    Declaration

    Swift

    public var routeLineTracksTraversal: Bool { get set }
  • Controls the styling of CarPlayNavigationViewController and its components.

    The style can be modified programmatically by using StyleManager.applyStyle(type:).

    Declaration

    Swift

    public private(set) var styleManager: StyleManager? { get }