v0.5.0
Packaging
- The map now uses a style specifically designed for turn-by-turn navigation. (#263)
- Added French, Hungarian, Lithuanian, Persian, and Spanish localizations. Help translate the SDK into your language! (#351)
- Upgraded to OSRM Text Instructions v0.2.0 with localization improvements and support for upcoming exit numbers provided by the Directions API. (#348)
- Corrected the frameworks’ bundle identifiers. (#281)
User interface
- The turn banner now indicates when the SDK is busy fetching a new route. (#269)
- More interface elements are now styleable. The
Style.fontFamily
property makes it easy to set the entire interface’s font face. (#330) - The interface now supports Dynamic Type. (#330)
- Fixed an issue preventing the turn banner from displaying the distance to some freeway exits. (#262)
- Fixed an issue in which swiping the turn banner to the right caused NavigationViewController to navigate to the wrong step. (#266)
- Fixed a crash presenting NavigationViewController via a storyboard segue. (#314)
- Fixed an issue causing black lines to appear over all roads during turn-by-turn navigation. (#339)
- When
NavigationViewController.route
is set to a new value, the UI updates to reflect the new route. (#302) - Widened the route line for improved visibility. (#358)
- Fixed an issue causing maneuver arrows along the route line to appear malformed. (#284)
- Maneuver arrows no longer appear along the route line when the map is zoomed out. (#295)
- The turn banner more reliably displays a route shield for applicable freeway on- and off-ramps. (#353)
- Fixed an issue causing the turn banner to show a shield for the wrong step after swiping between steps. (#290)
- Fixed an issue causing NavigationViewController and voice alerts to stop updating after a modal view controller is pushed atop NavigationViewController. (#306)
- The map displays attribution during turn-by-turn navigation. (#288)
- Added a
NavigationMapViewControllerDelegate.navigationMapView(_:imageFor:)
method for customizing the destination annotation. (#268) - Fixed an issue where the wrong source was passed into
MGLMapViewDelegate.navigationMapView(_:routeCasingStyleLayerWithIdentifier:source:)
. (#265, #267) - The turn banner abbreviates road names when using the Catalan, Lithuanian, Spanish, Swedish, or Vietnamese localization. (#254, #376)
Voice guidance
- To use Amazon Polly for voice guidance, set the
NavigationViewController.voiceController
property. (#313) - Fixed an issue that disabled Polly-powered voice guidance when the application went to the background. A message is printed to the console if the
audio
background mode is missing from the application’s Info.plist file. (#356) - Fixed a crash that could occur when the device is muted and an instruction would normally be read aloud. (#275)
- By default, a short audio cue now plays when the user diverges from the route, requiring a new route to be fetched. (#269)
- Renamed
RouteStepFormatter.string(for:markUpWithSSML:)
toRouteStepFormatter.string(for:legIndex:numberOfLegs:markUpWithSSML:)
. (#348)
Navigation
- Fixed a crash after a simulated route causes the SDK to fetch a new route. (#344)
- Fixed an issue that stopped location updates after the application returned to the foreground from the background. (#343)
- Fixed excessive calls to
NavigationViewControllerDelegate.navigationViewController(_:didArriveAt:)
. (#347) - Fixed crashes that occurred during turn-by-turn navigation. (#271, #336)
- Fixed a memory leak that occurs when
NavigationViewController.navigationDelegate
is set. (#316)
Core Navigation
- RouteController now requests Always Location Services permissions if
NSLocationAlwaysAndWhenInUseUsageDescription
is set in Info.plist. (#342) - RouteController now continues to track the user’s location after arriving at the destination. (#333)
- Fixed an issue causing RouteController to alternate rapidly between steps. (#258)
- The SimulatedLocationManager class now bridges to Objective-C. (#314)
- The DistanceFormatter class has been moved to Core Navigation. (#309)
Documentation is available online or within Xcode.