• Returns a CPImageSet representing the maneuver.

    Declaration

    Swift

    public func maneuverImageSet(side: DrivingSide) -> CPImageSet?
  • Returns whether the VisualInstruction’s maneuver image should be flipped according to the driving side.

    Declaration

    Swift

    public func shouldFlipImage(side: DrivingSide) -> Bool
  • Glanceable instruction given the available space, appearance styling, and attachments.

    Declaration

    Swift

    public func carPlayManeuverLabelAttributedText(bounds: @escaping () -> (CGRect), shieldHeight: CGFloat, window: UIWindow?) -> NSAttributedString?

    Parameters

    bounds

    A closure that calculates the available bounds for the maneuver text.

    shieldHeight

    The height of the shield.

    window

    A UIWindow that holds the UIAppearance styling properties, preferably the CarPlay window.

    Return Value

    An NSAttributedString with maneuver instructions.

  • Returns a CPImageSet representing the maneuver lane configuration.

    Declaration

    Swift

    public func lanesImageSet(side: DrivingSide, direction: ManeuverDirection?, scale: CGFloat) -> CPImageSet?