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

Custom Dismiss Action #170

Open
hadyhelal opened this issue Oct 30, 2024 · 0 comments
Open

Custom Dismiss Action #170

hadyhelal opened this issue Oct 30, 2024 · 0 comments

Comments

@hadyhelal
Copy link

I have custom header view

Screenshot 2024-10-30 at 5 21 15 PM

I want to dismiss (not hide) the bottom sheet when click in this custom close button.
I have read the documentation, but unfortunately, I couldn’t find anything that provides this customization. The .hide modifier doesn’t work well, as it doesn’t destroy the view; instead, it keeps it in its previous state. Additionally, the onDismiss { } closure doesn’t get triggered when switching to .hide.

I have gone a little bit deeper into the library and found out this:
Screenshot 2024-10-30 at 5 23 33 PM
It makes the configuration dismiss, which I think is what causes other things that totally destroy the view to get called! Unfortunately, it's an inaccessible property.
Do you have any API or configuration that could help me out?

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