GuidanceSpeedView
@IBDesignable
open class GuidanceSpeedView : UIView
View for displaying the current speed information.
-
The speed used to populate the view. The default value is
nil
.Declaration
Swift
public var speed: Measurement<UnitSpeed>? { get set }
-
Sets the text color of the speed value information. The default value is
UIColor.colorForeground
.Declaration
Swift
public var speedValueTextColor: UIColor { get set }
-
Sets the text color of the speed unit information. The default value is
UIColor.colorForegroundSecondary
.Declaration
Swift
public var speedUnitTextColor: UIColor { get set }
-
Sets the speed unit used by the view.
The default value depends on the locale.
- It uses .kilometersPerHour if current locale uses metric system for speed,
- It uses .milesPerHour otherwise.
Declaration
Swift
public var unit: UnitSpeed { get set }
-
Sets the text alignment of all textual information. The default value is
NSTextAlignment.left
.Declaration
Swift
public var textAlignment: NSTextAlignment { get set }