30 lines
928 B
Swift
30 lines
928 B
Swift
import SwiftUI
|
|
|
|
// MARK: SwiftUI.NavigationView { ... }.navigationViewStyle(.stack)
|
|
|
|
public struct NavigationViewWithStackStyleType: IntrospectableViewType {
|
|
public enum Style {
|
|
case stack
|
|
}
|
|
}
|
|
|
|
extension IntrospectableViewType where Self == NavigationViewWithStackStyleType {
|
|
public static func navigationView(style: Self.Style) -> Self { .init() }
|
|
}
|
|
|
|
#if canImport(UIKit)
|
|
extension iOSViewVersion<NavigationViewWithStackStyleType, UINavigationController> {
|
|
public static let v13 = Self(for: .v13)
|
|
public static let v14 = Self(for: .v14)
|
|
public static let v15 = Self(for: .v15)
|
|
public static let v16 = Self(for: .v16)
|
|
}
|
|
|
|
extension tvOSViewVersion<NavigationViewWithStackStyleType, UINavigationController> {
|
|
public static let v13 = Self(for: .v13)
|
|
public static let v14 = Self(for: .v14)
|
|
public static let v15 = Self(for: .v15)
|
|
public static let v16 = Self(for: .v16)
|
|
}
|
|
#endif
|