|
73 | 73 | /// } |
74 | 74 | /// ``` |
75 | 75 | public struct FormWithGroupedStyleType: IntrospectableViewType { |
76 | | - public enum Style: Sendable { |
77 | | - case grouped |
78 | | - } |
| 76 | + public enum Style: Sendable { |
| 77 | + case grouped |
| 78 | + } |
79 | 79 | } |
80 | 80 |
|
81 | 81 | extension IntrospectableViewType where Self == FormWithGroupedStyleType { |
82 | | - public static func form(style: Self.Style) -> Self { .init() } |
| 82 | + public static func form(style: Self.Style) -> Self { .init() } |
83 | 83 | } |
84 | 84 |
|
85 | 85 | #if canImport(UIKit) |
86 | 86 | public import UIKit |
87 | 87 |
|
88 | 88 | extension iOSViewVersion<FormWithGroupedStyleType, UITableView> { |
89 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 13") |
90 | | - public static let v13 = Self.unavailable() |
91 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 14") |
92 | | - public static let v14 = Self.unavailable() |
93 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 15") |
94 | | - public static let v15 = Self.unavailable() |
| 89 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 13") |
| 90 | + public static let v13 = Self.unavailable() |
| 91 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 14") |
| 92 | + public static let v14 = Self.unavailable() |
| 93 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on iOS 15") |
| 94 | + public static let v15 = Self.unavailable() |
95 | 95 | } |
96 | 96 |
|
97 | 97 | extension iOSViewVersion<FormWithGroupedStyleType, UICollectionView> { |
98 | | - public static let v16 = Self(for: .v16) |
99 | | - public static let v17 = Self(for: .v17) |
100 | | - public static let v18 = Self(for: .v18) |
101 | | - public static let v26 = Self(for: .v26) |
| 98 | + public static let v16 = Self(for: .v16) |
| 99 | + public static let v17 = Self(for: .v17) |
| 100 | + public static let v18 = Self(for: .v18) |
| 101 | + public static let v26 = Self(for: .v26) |
102 | 102 | } |
103 | 103 |
|
104 | 104 | extension tvOSViewVersion<FormWithGroupedStyleType, UITableView> { |
105 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 13") |
106 | | - public static let v13 = Self.unavailable() |
107 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 14") |
108 | | - public static let v14 = Self.unavailable() |
109 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 15") |
110 | | - public static let v15 = Self.unavailable() |
111 | | - public static let v16 = Self(for: .v16) |
112 | | - public static let v17 = Self(for: .v17) |
113 | | - public static let v18 = Self(for: .v18) |
114 | | - public static let v26 = Self(for: .v26) |
| 105 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 13") |
| 106 | + public static let v13 = Self.unavailable() |
| 107 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 14") |
| 108 | + public static let v14 = Self.unavailable() |
| 109 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on tvOS 15") |
| 110 | + public static let v15 = Self.unavailable() |
| 111 | + public static let v16 = Self(for: .v16) |
| 112 | + public static let v17 = Self(for: .v17) |
| 113 | + public static let v18 = Self(for: .v18) |
| 114 | + public static let v26 = Self(for: .v26) |
115 | 115 | } |
116 | 116 |
|
117 | 117 | extension visionOSViewVersion<FormWithGroupedStyleType, UICollectionView> { |
118 | | - public static let v1 = Self(for: .v1) |
119 | | - public static let v2 = Self(for: .v2) |
120 | | - public static let v26 = Self(for: .v26) |
| 118 | + public static let v1 = Self(for: .v1) |
| 119 | + public static let v2 = Self(for: .v2) |
| 120 | + public static let v26 = Self(for: .v26) |
121 | 121 | } |
122 | 122 | #elseif canImport(AppKit) |
123 | 123 | public import AppKit |
124 | 124 |
|
125 | 125 | extension macOSViewVersion<FormWithGroupedStyleType, NSScrollView> { |
126 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 10.15") |
127 | | - public static let v10_15 = Self.unavailable() |
128 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 11") |
129 | | - public static let v11 = Self.unavailable() |
130 | | - @available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 12") |
131 | | - public static let v12 = Self.unavailable() |
132 | | - public static let v13 = Self(for: .v13) |
133 | | - public static let v14 = Self(for: .v14) |
134 | | - public static let v15 = Self(for: .v15) |
135 | | - public static let v26 = Self(for: .v26) |
| 126 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 10.15") |
| 127 | + public static let v10_15 = Self.unavailable() |
| 128 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 11") |
| 129 | + public static let v11 = Self.unavailable() |
| 130 | + @available(*, unavailable, message: ".formStyle(.grouped) isn't available on macOS 12") |
| 131 | + public static let v12 = Self.unavailable() |
| 132 | + public static let v13 = Self(for: .v13) |
| 133 | + public static let v14 = Self(for: .v14) |
| 134 | + public static let v15 = Self(for: .v15) |
| 135 | + public static let v26 = Self(for: .v26) |
136 | 136 | } |
137 | 137 | #endif |
138 | 138 | #endif |
0 commit comments