Style
@objc(MBStyle)
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
-
URL of the style to display on the map during turn-by-turn navigation.
Declaration
Swift
@objc open var mapStyleURL: URL
-
URL of the style to display on the map when previewing a route, for example on CarPlay or your own route preview map.
Defaults to same style as
mapStyleURL
.Declaration
Swift
@objc open var previewMapStyleURL: URL
-
Applies the style for all changed properties.
Declaration
Swift
@objc open func apply()