mapbox-navigation-ios icon indicating copy to clipboard operation
mapbox-navigation-ios copied to clipboard

Floating buttons can be changed only after `NavigationViewController` is presented

Open azarovalex opened this issue 4 years ago • 0 comments

Consider this code:

let navigationViewController = NavigationViewController(for: response, routeIndex: 0, routeOptions: routeOptions, navigationOptions: navigationOptions)
navigationViewController.floatingButtons = []

This code won't work because ornamentsController inside of NavigationViewController will be created only in viewDidLoad. We can trigger view load in floatingButtons getter to fix the problem.

azarovalex avatar Sep 30 '21 13:09 azarovalex