Skip to content

Commit cad6114

Browse files
committed
wip
1 parent 2f018f5 commit cad6114

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

Sources/ViewTypes/TextEditor.swift

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,36 @@ import SwiftUI
22

33
/// An abstract representation of the `TextEditor` type in SwiftUI.
44
///
5+
/// ### iOS
6+
///
57
/// ```swift
68
/// struct ContentView: View {
79
/// @State var text = "Lorem ipsum"
810
///
911
/// var body: some View {
1012
/// TextEditor(text: $text)
11-
/// #if os(iOS)
1213
/// .introspect(.textEditor, on: .iOS(.v14, .v15, .v16, .v17)) {
1314
/// print(type(of: $0)) // UITextView
1415
/// }
15-
/// #elseif os(macOS)
16+
/// }
17+
/// }
18+
/// ```
19+
///
20+
/// ### tvOS
21+
///
22+
/// Not available.
23+
///
24+
/// ### macOS
25+
///
26+
/// ```swift
27+
/// struct ContentView: View {
28+
/// @State var text = "Lorem ipsum"
29+
///
30+
/// var body: some View {
31+
/// TextEditor(text: $text)
1632
/// .introspect(.textEditor, on: .macOS(.v11, .v12, .v13, .v14)) {
1733
/// print(type(of: $0)) // NSTextView
1834
/// }
19-
/// #endif
2035
/// }
2136
/// }
2237
/// ```

0 commit comments

Comments
 (0)