Skip to content

Commit

Permalink
fixup! Restore the ability to init NavVC without animations.
Browse files Browse the repository at this point in the history
Update docs
  • Loading branch information
michaelkirk committed Jun 26, 2024
1 parent bbb47f9 commit 330a019
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 7 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
- To simulate a route, pass a `SimulatedLocationManager` to `startNavigation()` function:

```swift
let vc = NavigationViewController(dayStyleURL: AppConfig().tileserverStyleUrl)
let simulatedLocationManager = SimulatedLocationManager(route: route)
simulatedLocationManager.speedMultiplier = 5
vc.startNavigation(with: route, animated: false, locationManager: simulatedLocationManager)
#if targetEnvironment(simulator)
let locationManager = SimulatedLocationManager(route: route)
locationManager.speedMultiplier = 2
self.startNavigation(with: route, animated: false, locationManager: locationManager)
#else
self.startNavigation(with: route, animated: false)
#endif
```

## 3.0.0 (Jun 15, 2024)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ Start the navigation by calling `startNavigation(with: route)`. If you want to s
#if targetEnvironment(simulator)
let locationManager = SimulatedLocationManager(route: route)
locationManager.speedMultiplier = 2
self.startNavigation(with: route, locationManager: locationManager)
self.startNavigation(with: route, animated: false, locationManager: locationManager)
#else
self.startNavigation(with: route)
self.startNavigation(with: route, animated: false)
#endif
```

Expand Down

0 comments on commit 330a019

Please sign in to comment.