.live() issue in ios-navigation tutorial
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 8
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
https://github.com/mapbox/tutorials/blob/9c73e2198713e5a88db54e6317f5da327b6cc76c/ios-navigation/ios-navigation/NavigationLoader.swift#L11
This gives an error `Enum case 'live' has no associated values` and indeed the documentation https://docs.mapbox.com/ios/navigation/api/3.12.0/navigation/documentation/mapboxnavigationcore/locationsource specifies the value as `.live` and the tutorial shows it as `.live` https://docs.mapbox.com/help/tutorials/ios-navigation/?step=4
However even changing this to `.live` is problematic, doing so on the original code here the map loads but seems to be stuck with the rest of the navigation UI. It seems to be sporadic though, simply restarting the app the UI loads fine...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ios-navigation/ios-navigation/NavigationLoader.swift at line 11 and reproduce tutorial step 4 using the documented LocationSource value. Compare the tutorial code with the linked Mapbox iOS Navigation API documentation, then verify that the map and remaining navigation UI load consistently. Done means the tutorial builds without the enum error and the navigation UI no longer intermittently stalls.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100