We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aada265 commit de598b9Copy full SHA for de598b9
Sources/ViewTypes/View.swift
@@ -60,6 +60,14 @@
60
/// ```
61
public struct ViewType: IntrospectableViewType {}
62
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
+
71
extension IntrospectableViewType where Self == ViewType {
72
public static var view: Self { .init() }
73
}
0 commit comments