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

presentCover(:onDismiss) now gone, how now to invoke a closure up on dismissal? #79

Open
Scvairy opened this issue Aug 2, 2024 · 2 comments

Comments

@Scvairy
Copy link

Scvairy commented Aug 2, 2024

There are some relics of older api with onDismiss mentions, but no actual closure is accepted.

@Scvairy
Copy link
Author

Scvairy commented Aug 2, 2024

#78 (comment)

@Scvairy Scvairy closed this as completed Aug 2, 2024
@Scvairy
Copy link
Author

Scvairy commented Aug 2, 2024

Using a method mentioned here:
#78 (comment)
is too bulky in case when I want to invoke onDismiss for a certain screen I pushed from certain place.

How can I maybe rewrite it, so I would affect only the screen I presented with routes.presentSheet(.myScreen)?

I've found workaround to call my onDismiss in buttons, but on swipe down it will not be called.

@Scvairy Scvairy reopened this Aug 2, 2024
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