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

Fix issue with rotation when using SwiftUI wrapper #596

Merged
merged 1 commit into from
Sep 19, 2021

Conversation

rechsteiner
Copy link
Owner

The SwiftUI wrapper had a bug where it would end up in the wrong page
when rotating the device. This only happend when not passing in a
$selectedIndex binding, which then defaults to a .constant(0) value
that will never be updated and therefore keep resetting the page to
the first page when rotating.

The SwiftUI wrapper had a bug where it would end up in the wrong page
when rotating the device. This only happend when not passing in a
$selectedIndex binding, which then defaults to a .constant(0) value
that will never be updated and therefore keep resetting the page to
the first page when rotating.
@rechsteiner rechsteiner merged commit 6c74024 into master Sep 19, 2021
@rechsteiner rechsteiner deleted the fix-swiftui-rotation branch September 19, 2021 09:10
@Sargis
Copy link

Sargis commented Sep 19, 2023

Not work!

@rechsteiner
Copy link
Owner Author

Not work!

Do you have any more details? 😅

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

Successfully merging this pull request may close these issues.

2 participants