.live() issue in ios-navigation tutorial

Open
#20 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
swift
Domain
mobile

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.

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...

Image
Dominant language
HTML
Stars
8
Forks
0
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Mobile Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.