GuidanceStreetLabel
@IBDesignable
open class GuidanceStreetLabel : UILabel
Label for displaying the street name, which depends on position and map tracking data.
-
Sets the content insets.
Declaration
Swift
public var contentInsets: UIEdgeInsets { get set }
-
Background color of the label when it’s accented. The default value is
UIColor.colorPositive
.Declaration
Swift
public var accentBackgroundColor: UIColor { get set }
-
Background color of label when it’s not accented. The default value is
UIColor.colorForegroundSecondary
.Declaration
Swift
public var plainBackgroundColor: UIColor { get set }
-
Sets the background color. If
true
it usesaccentBackgroundColor
, otherwiseplainBackgroundColor
is used. The default value istrue
.Declaration
Swift
public var isAccented: Bool { get set }
-
Sets the text of the label that should be displayed when
isLookingForPosition
istrue
.Declaration
Swift
public var lookingForPositionText: String? { get set }
-
Sets the state to
looking for position
.When set to
true
, the label sets itsisHidden
property totrue
, usesplainBackgroundColor
as itsbackgroundColor
and setslookingForPositionText
as itstext
.When set to
false
, the label sets itsisHidden
property tofalse
, usesaccentBackgroundColor
as itsbackgroundColor
and sets itstext
propertynil
.Note
When this property is set,text
property is invalidated and should be configured again.The default value is
false
.Declaration
Swift
public var isLookingForPosition: Bool { get set }