Skip to content

Commit 6be5873

Browse files
committed
wip
1 parent a554d0a commit 6be5873

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

Sources/ViewTypes/View.swift

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
import SwiftUI
22

3-
// MARK: SwiftUI.View
4-
3+
/// An abstract representation of a generic view type in SwiftUI.
4+
///
5+
/// ```swift
6+
/// struct ContentView: View {
7+
/// var body: some View {
8+
/// NavigationView {
9+
/// Text("Root")
10+
/// #if os(iOS) || os(tvOS)
11+
/// .introspect(.view, on: .iOS(.v13, .v14, .v15, .v16, .v17), .tvOS(.v13, .v14, .v15, .v16, .v17)) {
12+
/// print(type(of: $0)) // UIViewController
13+
/// }
14+
/// #endif
15+
/// }
16+
/// .navigationViewStyle(.stack)
17+
/// }
18+
/// }
19+
/// ```
520
public struct ViewType: IntrospectableViewType {
621
public var scope: IntrospectionScope { [.receiver, .ancestor] }
722
}

0 commit comments

Comments
 (0)