Skip to content

Commit de598b9

Browse files
committed
WIP
1 parent aada265 commit de598b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/ViewTypes/View.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@
6060
/// ```
6161
public struct ViewType: IntrospectableViewType {}
6262

63+
// TODO: I think if Swift ever gets parameterized extensions we could introduce subtypes like:
64+
//
65+
// public struct ViewType<PlatformViewType: PlatformView>: IntrospectableViewType {}
66+
//
67+
// extension <V: PlatformView> IntrospectableViewType where Self == ViewType<V> {
68+
// public static func view<V>(ofType: V.Type) -> Self { ... }
69+
// }
70+
6371
extension IntrospectableViewType where Self == ViewType {
6472
public static var view: Self { .init() }
6573
}

0 commit comments

Comments
 (0)