Style
public 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
.
-
Initializes a style that will be applied for any system traits of an interface’s environment.
Declaration
Swift
convenience override public init()
-
Initializes a style for a specific system trait(s) of an interface’s environment.
Declaration
Swift
required public init(traitCollection: UITraitCollection)
-
Sets the tint color for guidance arrow, highlighted text, progress bar and more.
Declaration
Swift
public var tintColor: UIColor?
-
Sets the font family for all labels.
Declaration
Swift
public var fontFamily: String?
-
Sets the text color on buttons for normal state.
Declaration
Swift
public var buttonTextColor: UIColor?
-
Sets the color of dividers and separators.
Declaration
Swift
public var lineColor: UIColor?
-
Sets the background color of the maneuver view, positioned at the top.
Declaration
Swift
public var maneuverViewBackgroundColor: UIColor?
-
Sets the height of the maneuver view.
Declaration
Swift
public var maneuverViewHeight: CGFloat?
-
Sets the font on the distance label.
Declaration
Swift
public var distanceLabelFont: UIFont?
-
Sets the text color on the distance label.
Declaration
Swift
public var distanceLabelTextColor: UIColor?
-
Sets the font on the destination label.
Declaration
Swift
public var destinationLabelFont: UIFont?
-
Set the text color on the destination label.
Declaration
Swift
public var destinationLabelTextColor: UIColor?
-
Sets the prominent color on the turn arrow.
Declaration
Swift
public var turnArrowPrimaryColor: UIColor?
-
Sets the subtle color on the turn arrow.
Declaration
Swift
public var turnArrowSecondaryColor: UIColor?
-
Sets the color of the drawer header, positioned at the bottom.
Declaration
Swift
public var headerBackgroundColor: UIColor?
-
Sets the font on the time remaining label.
Declaration
Swift
public var timeRemainingLabelFont: UIFont?
-
Sets the text color on the time remaining label.
Declaration
Swift
public var timeRemainingLabelTextColor: UIColor?
-
Sets the font on the distance remaining label.
Declaration
Swift
public var distanceRemainingLabelFont: UIFont?
-
Sets the text color on the distance remaining label.
Declaration
Swift
public var distanceRemainingLabelTextColor: UIColor?
-
Sets the font on the arrival time label.
Declaration
Swift
public var arrivalTimeLabelFont: UIFont?
-
Sets the text color on the ETA label.
Declaration
Swift
public var arrivalTimeLabelTextColor: UIColor?
-
Sets the font of the title labels in table views.
Declaration
Swift
public var cellTitleLabelFont: UIFont?
-
Sets the title text color in table views.
Declaration
Swift
public var cellTitleLabelTextColor: UIColor?
-
Sets the font of the subtitle label in table views.
Declaration
Swift
public var cellSubtitleLabelFont: UIFont?
-
Sets the text color of the subtitle label in table views.
Declaration
Swift
public var cellSubtitleLabelTextColor: UIColor?
-
Sets the color for the current way name label.
Declaration
Swift
public var wayNameLabelTextColor: UIColor?
-
Sets the font of the current way name label.
Declaration
Swift
public var wayNameLabelFont: UIFont?
-
Applies the style for all changed properties.
Declaration
Swift
public func apply()