WayNameView

@objc(MBWayNameView)
@MainActor
open class WayNameView : UIView

A host view for WayNameLabel that shows a road name and a shield icon.

WayNameView is hidden or shown depending on the road name information availability. In case if such information is not present, WayNameView is automatically hidden. If you’d like to completely hide WayNameView set WayNameView.isHidden property to true.

  • The background color of the WayNameView.

    Declaration

    Swift

    @MainActor
    dynamic public override var backgroundColor: UIColor? { get set }
  • The color of the WayNameView‘s border.

    Declaration

    Swift

    @objc
    @MainActor
    public dynamic var borderColor: UIColor? { get set }
  • The width of the WayNameView‘s border.

    Declaration

    Swift

    @objc
    @MainActor
    public dynamic var borderWidth: CGFloat { get set }
  • The radius of the WayNameView‘s corner. By default corner radius is set to half of WayNameView’s height.

    Declaration

    Swift

    @objc
    @MainActor
    public dynamic var cornerRadius: CGFloat { get set }