-
Notifications
You must be signed in to change notification settings - Fork 310
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
Fix route line visibility. #3205
Conversation
@@ -153,8 +153,7 @@ extension NavigationMapView { | |||
} | |||
} | |||
|
|||
func onViewDidAppear() { | |||
showRouteIfNeeded() |
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.
Previous delegate method name was incorrect, so it was never called, not sure if we really need navigationViewDidAppear(_:)
anyway. Call to showRouteIfNeeded()
is not needed either as it'll be called each time MapView
style changes.
@@ -47,8 +47,8 @@ extension NavigationMapView { | |||
// MARK: - Private methods | |||
|
|||
private func showRouteIfNeeded() { | |||
guard navigationViewData.containerViewController.isViewLoaded && | |||
navigationViewData.containerViewController.view.window != nil else { return } |
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.
@Udumft, would you be able to provide more details on why you've added this check: navigationViewData.containerViewController.view.window != nil
? At this point it prevents from showing route line right at the start of active guidance navigation session, when using NavigationViewController
. I wonder if I miss anything here.
b218c74
to
fefe858
Compare
61fd00a
to
de38c92
Compare
b0d35ba
to
96c8c3d
Compare
a503e29
to
a6f6e8f
Compare
96c8c3d
to
cb5b84f
Compare
afcb804
to
665f177
Compare
// Since `NavigationViewController` presents route line after its presentation it is expected | ||
// that maneuver arrow stroke layer will be added above main route line layer. |
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.
Thanks for adding comments into the test code! That area of the code base would benefit from more in-line comments.
1b5fce4
to
4bc1f75
Compare
665f177
to
1d538aa
Compare
…ontroller` instance.
85feb0b
to
baf7b9d
Compare
Description
Closing #3193.