Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Checklist
CHANGELOG.md
if knowledge of this change could be valuable to users.Description
Hide LaneView when Navigation is starting but make sure it shows up if the route contains lane information
Tasks
update(for visualInstruction: VisualInstructionBanner?)
handle show & hideInfos for Reviewer
NavigationView
has a functionshowUI(animated: Bool = true)
which showed the LanesView even when the route doesn't contain lane information. This function was called when navigation starts, therefore the next step view was double in size. After the first turn this view was then correctly hidden.Because the all other views animate via alpha value, this could lead to a state where the LanesView wouldn't show up, as
update(for visualInstruction: VisualInstructionBanner?)
only changed theisHidden
property, alpha could be still zero, which would prevent the view from appearing.I've used a route in Berlin using Mapbox API to obtain a route which I know contains lane information. This is a recording form our app, please note that our map style doesn't contain map data in this region, thats why it's empty. The route works regardless and the important part, showing the LanesView appearing is visible.