Style

open class Style: NSObject

Style is a convenient wrapper for styling the appearance of various interface components throughout the Navigation UI.

Styles are applied globally using UIAppearance. You should call Style.apply() to apply the style to the NavigationViewController.

  • Sets the tint color for guidance arrow, highlighted text, progress bar and more.

    Declaration

    Swift

    @objc public var tintColor: UIColor?
  • Sets the status bar style. UIViewControllerBasedStatusBarAppearance must be set to NO for this property to have any effect.

    Declaration

    Swift

    public var statusBarStyle: UIStatusBarStyle?
  • Sets the font family for all labels.

    Declaration

    Swift

    @objc public var fontFamily: String?
  • Describes the situations in which the style should be used. By default, the style will be used during the daytime.

    Declaration

    Swift

    @objc public var styleType: StyleType = .day
  • Map style to be used for the style.

    Declaration

    Swift

    @objc open var mapStyleURL: URL = MGLStyle.navigationGuidanceDayStyleURL
  • Applies the style for all changed properties.

    Declaration

    Swift

    @objc open func apply()