rundfunk47 / stinsen

Coordinators in SwiftUI. Simple, powerful and elegant.
MIT License
924 stars 98 forks source link

Update onDismiss to support multistack dismissal #102

Closed mattjung closed 2 years ago

mattjung commented 2 years 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.