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 bug where using a segmented picker within a PartialSheet leads to unresponsive picker. #165

Merged
merged 1 commit into from
Aug 30, 2023

Conversation

JuliusHuizing
Copy link

Fix bug where using a segmented picker within a PartialSheet leads to unresponsive picker.

Remove call to onTapGesture method in iPhoneSheet builder.
As pointed out by @ajevans99, SwiftUI seems to have trouble handling segmented pickers correctly if an onTapGesture method is added to the view that contains the picker.
In this case of the iPhone sheet buider, the onTapGesture method call can safely be deleted since it was hardcoded to execute an empty closure.
Removing the call should therefore not have any effect except for solving the mentioned bug.

… unresponsive picker.

Remove call to onTapGesture method in iPhoneSheet builder.
As pointed out by @ajevans99, SwiftUI seems to have trouble handling segmented pickers correctly if an onTapGesture method is added to the view that contains the picker.
In this case of the iPhone sheet buider, the onTapGesture method call can safely be deleted since it was hardcoded to execute an empty closure.
Removing the call should therefore not have any effect except for solving the mentioned bug.
@tanigon
Copy link

tanigon commented Aug 30, 2022

+1 looking forward to being merged... seriously

gemiren added a commit to gemiren/PartialSheet that referenced this pull request Oct 16, 2022
@AndreaMiotto AndreaMiotto merged commit cf20df7 into AndreaMiotto:master Aug 30, 2023
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.

4 participants