NavigationViewWithStackStyleType

public struct NavigationViewWithStackStyleType : IntrospectableViewType

An abstract representation of the NavigationView type in SwiftUI, with .stack style.

struct ContentView: View {
    var body: some View {
        NavigationView {
            Text("Root")
        }
        .navigationViewStyle(.stack)
        .introspect(.navigationView(style: .stack), on: .iOS(.all)) {
            print(type(of: $0)) // UINavigationController
        }
    }
}
  • Undocumented

    See more

    Declaration

    Swift

    public enum Style