36 lines
1.1 KiB
Swift
36 lines
1.1 KiB
Swift
import SwiftUI
|
|
|
|
// MARK: SwiftUI.ScrollView
|
|
|
|
public struct ScrollViewType: IntrospectableViewType {}
|
|
|
|
extension IntrospectableViewType where Self == ScrollViewType {
|
|
public static var scrollView: Self { .init() }
|
|
}
|
|
|
|
#if canImport(UIKit)
|
|
extension iOSViewVersion<ScrollViewType, UIScrollView> {
|
|
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<ScrollViewType, UIScrollView> {
|
|
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)
|
|
}
|
|
#elseif canImport(AppKit)
|
|
extension macOSViewVersion<ScrollViewType, NSScrollView> {
|
|
public static let v10_15 = Self(for: .v10_15)
|
|
public static let v11 = Self(for: .v11)
|
|
public static let v12 = Self(for: .v12)
|
|
public static let v13 = Self(for: .v13)
|
|
public static let v14 = Self(for: .v14)
|
|
}
|
|
#endif
|