I have NavigationStack with its own navigation links, for iOS16 development.
How to change the default slide transition to appear or a custom transition?
Also do you apply the transition on the NavigationStack or on the NavigationLink?
This is my code:
import SwiftUI
struct TestView: View {
var body: some View {
NavigationStack() {
NavigationLink ("Link", value: "Any Value")
.navigationDestination(for: String.self) { textValue in
destinationView(textValue: textValue)
}
}
}
}
struct destinationView: View {
let textValue: String
var body: some View {
Text(textValue)
}
}
How to change the default transition?