Skip to content
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

Interference with navigation bar in iOS 15 #23

Open
Manc opened this issue Sep 23, 2021 · 0 comments
Open

Interference with navigation bar in iOS 15 #23

Manc opened this issue Sep 23, 2021 · 0 comments

Comments

@Manc
Copy link

Manc commented Sep 23, 2021

I'm not sure if there is anything this package can do about this, but I experienced an issue in iOS 15 and at least it might help somebody else.

The problem:

If you have a parent-child view scenario with a NavigationView in the parent view and a ScrollView in the detail/child view, you must not attach .safariView() to the ScrollView.

This was perfectly fine in iOS 14, but it seems in iOS 15 the navigation no longer detects the ScrollView, or at least the scroll position and therefore, the navigation bar at the top does not update when the user scrolls down.

Solution:

Simply attach .safariView() to an element inside ScrollView { … }.

I hope my description makes sense. I have no deeper insights, I only narrowed down the issue in my app and came up with this solution. Hope it helps somebody.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant