FlowStacks
FlowStacks copied to clipboard
presentCover(:onDismiss) now gone, how now to invoke a closure up on dismissal?
There are some relics of older api with onDismiss mentions, but no actual closure is accepted.
https://github.com/johnpatrickmorgan/FlowStacks/issues/78#issue-2387902292
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.