Closed
Description
As of 892f1e5 for #3, this library uses Directions.shared
, which automatically reads the access token from the Info.plist. But if the developer needs to specify the access token programmatically, they’re out of luck. Plus, now everyone with access to this repository knows your access token.
Instead, NavigationController’s initializer should accept an access token as an optional argument. In the example application, use a placeholder token, which looks like this inside Xcode:
If the developer doesn’t specify an access token, NavigationController can create Directions with a nil
access token, which will cause Directions to automatically look in the Info.plist.
/cc @bsudekum