FlowStacks icon indicating copy to clipboard operation
FlowStacks copied to clipboard

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

Open Scvairy opened this issue 1 year ago • 2 comments

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

Scvairy avatar Aug 02 '24 15:08 Scvairy

https://github.com/johnpatrickmorgan/FlowStacks/issues/78#issue-2387902292

Scvairy avatar Aug 02 '24 15:08 Scvairy

Using a method mentioned here: https://github.com/johnpatrickmorgan/FlowStacks/issues/78#issuecomment-2209274763 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 avatar Aug 02 '24 16:08 Scvairy