GuidanceSpeedLimitView
@IBDesignable
open class GuidanceSpeedLimitView : UIView
View for displaying the speed limit information.
-
Image View for the background image.
Declaration
Swift
@IBOutlet public private(set) var backgroundImageView: UIImageView!
-
The speed limit used to populate the view.
Declaration
Swift
public var speedLimit: Measurement<UnitSpeed>? { get set }
-
Sets the speed limit 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 color of the speed limit information. The default value is
UIColor.colorForeground
.Declaration
Swift
public var speedLimitTextColor: UIColor { get set }