NavigationViewWithColumnsStyleType
@MainActor
public struct NavigationViewWithColumnsStyleType : IntrospectableViewType
An abstract representation of the NavigationView
type in SwiftUI, with .columns
style.
struct ContentView: View {
var body: some View {
NavigationView {
Text("Root")
}
.navigationViewStyle(DoubleColumnNavigationViewStyle())
.introspect(.navigationView(style: .columns), on: .iOS(.all)) {
print(type(of: $0)) // UISplitViewController
}
}
}