Navigation SDK for iOS v2


To set up Mapbox Navigation in a storyboard:

  • Open the object library and drag in a Storyboard Reference.
  • Pick Navigation from the dropdown and set bundle to com.mapbox.MapboxNavigation (org.cocoapods.MapboxNavigation if you are using CocoaPods).
  • Set up a segue to the storyboard reference like you would to any other UIViewController.

You also need to pass a route, routeIndex, routeOptions, and optionally a navigationOptions to the NavigationViewController. To do that, override your UIViewController's prepare(for:sender:):

Further resources