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 uses accentBackgroundColor, otherwise plainBackgroundColor is used. The default value is true.

    Declaration

    Swift

    public var isAccented: Bool { get set }
  • Sets the text of the label that should be displayed when isLookingForPosition is true.

    Declaration

    Swift

    public var lookingForPositionText: String? { get set }
  • Sets the state to looking for position.

    When set to true, the label sets its isHidden property to true, uses plainBackgroundColor as its backgroundColor and sets lookingForPositionText as its text.

    When set to false, the label sets its isHidden property to false, uses accentBackgroundColor as its backgroundColor and sets its text property nil.

    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 }