NavigationView
@IBDesignable
open class NavigationView : UIView
A view that represents the root view of the MapboxNavigation drop-in UI.
Components
- InstructionsBannerView
- InformationStackView
- BottomBannerView
- ResumeButton
- WayNameLabel
- FloatingStackView
- NavigationMapView
- SpeedLimitView
+--------------------+
| 1 |
+--------------------+
| 2 |
+---+------------+---+
| 8 | | |
+---+ | 6 |
| | |
| 7 +---+
| |
| |
| |
+------------+ |
| 4 || 5 | |
+------------+-------+
| 3 |
+--------------------+
-
NavigationMapViewthat is displayed inside theNavigationView.Declaration
Swift
public var navigationMapView: NavigationMapView { get set }
-
Stack view that contains floating buttons.
Declaration
Swift
public lazy var floatingStackView: UIStackView { get set } -
The buttons to show floating on the map inside
floatingStackView.Declaration
Swift
public var floatingButtons: [UIButton]? { get set } -
A host view for
WayNameLabelthat shows a road name and a shield icon.Declaration
Swift
public lazy var wayNameView: WayNameView { get set } -
A view that displays a speed limit.
Declaration
Swift
public lazy var speedLimitView: SpeedLimitView { get set } -
View that is used as a container for top banners. By default, for turn-by-turn navigation
NavigationViewControllerpresentsTopBannerViewControllerin this banner container.Declaration
Swift
public lazy var topBannerContainerView: BannerContainerView { get set } -
View that is used as a container for bottom banners. By default, for turn-by-turn navigation
NavigationViewControllerpresentsBottomBannerViewControllerin this banner container.Declaration
Swift
public lazy var bottomBannerContainerView: BannerContainerView { get set }
-
Initializes a
NavigationViewinstance with the specified parameters.Declaration
Swift
public init(frame: CGRect, tileStoreLocation: TileStoreConfiguration.Location? = NavigationSettings.shared.tileStoreConfiguration.mapLocation , navigationMapView: NavigationMapView? = nil)Parameters
frameThe frame rectangle for the
NavigationView.tileStoreLocationConfiguration of the
TileStorelocation, where map tiles are stored. Value is ignored if customNavigationMapViewinstance was provided. Usenilto disable onboard tile storage.navigationMapViewCustom
NavigationMapViewinstance to supersede the default one.
Install in Dash
NavigationView Class Reference