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

iOS Dialog and Sheet Improvements #170

Merged
merged 3 commits into from
Sep 3, 2024
Merged

Conversation

aschulz90
Copy link
Contributor

This PR contains two iOS dialog and sheet changes:

  1. Make AlertDialog use the current UIViewController and not the root controller. This allows to show adaptive alert dialogs from within sheets (see sample). Before, the sheet was shown on the current controller (usually root) and dialogs where also trying to be shown on the root, causing an error, because a controller may only present one controller at a time.

  2. Make sheets use confirmValueChange() to prevent hiding a sheet by swiping down. I haven't found any callback for the other states, so only hidden is supported right now.

@MohamedRejeb
Copy link
Owner

Thanks for you contribution! I will check it later today.

@MohamedRejeb MohamedRejeb self-requested a review September 3, 2024 09:45
Copy link
Owner

@MohamedRejeb MohamedRejeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@MohamedRejeb MohamedRejeb merged commit 218e25e into MohamedRejeb:main Sep 3, 2024
3 checks passed
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