How to navigate in SwiftUI while also executing logic and creating a new Object? [closed] Closed 3 days ago.