rundfunk47 / stinsen

Coordinators in SwiftUI. Simple, powerful and elegant.
MIT License
822 stars 87 forks source link

Dismissing item issue #111

Closed yRerikh closed 1 year ago

yRerikh commented 1 year ago

Hello, @rundfunk47, thank you for this framework. I would like to ask you about some moment while dismissing an item manually. When an item is presented with parameter @Root(.modal), there is a possibility to dismiss it by swiping down without pressing any button. My problem is that I don't know how to detect dismiss event in such case. Could you help me with that?

LePips commented 1 year ago

There are two ways to achieve this:

yRerikh commented 1 year ago

@LePips I suppose, a parameter onDismiss is exactly what I need. Thank you very much.