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

Nesting Navigators prevents WindowInsets from being updated upon device rotation on iOS #366

Open
ElliotSknr opened this issue Mar 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@ElliotSknr
Copy link

ElliotSknr commented Mar 11, 2024

I have found that on iOS, window insets are not being updated correctly after the device is rotated, only if you are using nested navigators.

I have linked a sample project that contains the minimal reproducible code. Please see the App.kt file and change the useNestedNavigators value.

I've tested on both 1.1.0-alpha03, where the issue is present. Upon downgrading to 1.0.0 with no other changes, the issue goes away.

Sample Project: https://github.com/ElliotSknr/WindowInsetsDemo

Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-03-11.at.16.28.49.mp4
Simulator.Screen.Recording.-.iPhone.15.Pro.Max.-.2024-03-11.at.16.29.12.mp4
@ElliotSknr ElliotSknr changed the title Nesting a TabNavigator inside of a Navigator prevents WindowInsets from being updated Nesting Navigators prevents WindowInsets from being updated upon device rotation on iOS Mar 12, 2024
@DevSrSouza DevSrSouza added the bug Something isn't working label Apr 8, 2024
@ElliotSknr
Copy link
Author

I've updated the sample project which replicates the issue to use 1.1.0-alpha04. Unfortunately the bump to Compose Multiplatform 1.6.1 in this version does not seem to have fixed this particular bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants