SwiftUI-Introspect/Sources/ViewTypes/View.swift

30 lines
849 B
Swift

import SwiftUI
// MARK: SwiftUI.View
public struct ViewType: IntrospectableViewType {
public var scope: IntrospectionScope { [.receiver, .ancestor] }
}
extension IntrospectableViewType where Self == ViewType {
public static var view: Self { .init() }
}
#if canImport(UIKit)
extension iOSViewVersion<ViewType, UIViewController> {
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)
public static let v17 = Self(for: .v17)
}
extension tvOSViewVersion<ViewType, UIViewController> {
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)
public static let v17 = Self(for: .v17)
}
#endif