johnpatrickmorgan / FlowStacks

FlowStacks allows you to hoist SwiftUI navigation and presentation state into a Coordinator
MIT License
783 stars 56 forks source link

.goBack() crashes when called too many times #26

Closed romankozak closed 2 years ago

romankozak commented 2 years ago

On initial screen, first .goBack() doesn't crash, but messes the navigation stack (won't go back from next pushed view). Second .goBack() crashes due to invalid index

DavidKmn commented 2 years ago

This should fix it #29

johnpatrickmorgan commented 2 years ago

Thanks @romankozak for raising this issue, and @DavidKmn for the speedy fix! Merged and released in V0.2.1.