I love to keep my feature’s navigation flow in a single place. That’s why I usually implement the Navigator pattern allowing me to handle my navigation in a type-safe way. The new data-driven Navigation API in SwiftUI allows us easily implement Navigator pattern.
https://swiftwithmajid.com/2022/06/15/mastering-navigationstack-in-swiftui-navigator-pattern/