I have looked into many solutions but none of them works. My app navigation flow is
- ViewController (UIKit) - pushes to SwiftUI view
- This SwiftUI view shows the back bar button for a fraction of seconds and then gets hidden.
Here is my code:
struct FirstSwiftUIView: View {
var body: some View {
VStack {
Text("First SwiftUi View")
NavigationLink {
SecondSwiftUIView()
} label: {
Text("Next View")
}
}
.navigationBarBackButtonHidden(true)
.navigationBarTitle("")
}
}