frzi / swiftui-router

Path-based routing in SwiftUI
MIT License
900 stars 43 forks source link

fix: make replace in Navigate customizable #27

Closed koraykoska closed 2 years ago

koraykoska commented 2 years ago

We use programmatic Navigation only and have some use cases where the history stack should not be replaced. I am not sure if true or false is the better option as a default value but to be backwards compatible I simply added it as an optional init param.

Please merge and release.

frzi commented 2 years ago

This is a great addition, and am quite embarrassed I didn't implement this earlier. Thanks!