rundfunk47 / stinsen

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

Update onDismiss to support multistack dismissal #102

Closed mattjung closed 1 year ago

mattjung commented 1 year ago

Originally, onDismiss API didn't take into account if there is more than 1 item in the stack.

Use stack count to store onDismiss action against the correct key.

When user pops/swipes to dismiss the correct dismissalAction will be called.