-
Notifications
You must be signed in to change notification settings - Fork 32
fix setup && bugs #202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix setup && bugs #202
Conversation
Remove podfile, add dependencies via SPM
…vigating/Remove navigation mode like map style after close navigation mode
@@ -10,16 +10,14 @@ A collection of examples showing off the [Mapbox Navigation SDK](https://github. | |||
|
|||
_Installation with CocoaPods_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change to SPM now
@@ -10,16 +10,14 @@ A collection of examples showing off the [Mapbox Navigation SDK](https://github. | |||
|
|||
_Installation with CocoaPods_ | |||
|
|||
1. `git clone https://github.com/mapbox/mapbox-navigation-ios-examples.git` | |||
1. `cd mapbox-navigation-ios-examples` | |||
1. Open project and wait for couple of minutes. SPM need to load mapbox Navigation SDK dependencies. ☕️ | |||
1. Go to your [Mapbox account dashboard](https://account.mapbox.com/) and create an access token that has the `DOWNLOADS:READ` scope. **PLEASE NOTE: This is not the same as your production Mapbox API token. Make sure to keep it private and do not insert it into any Info.plist file.** Create a file named `.netrc` in your home directory if it doesn’t already exist, then add the following lines to the end of the file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This step should be done before a user tries to resolve packages, otherwise, SPM won't be able to download binary artifacts.
lineLayer.lineCap = .constant(.round) | ||
|
||
return lineLayer | ||
func changeMapStyle(_ navigationMapView: NavigationMapView?) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Intention of this example is to showcase the ability to change route line styling via delegates. I'm not sure that we need this change.
-Move project setup from cocoapods to spm
-Fix crashes
-Updated code base and improved examples with new SDK features
-Update readme