Skip to content

Commit 41a4e74

Browse files
committed
Fix a compile error for the macOS's example
1 parent 62013a6 commit 41a4e74

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Example/Example (Shared)/ContentView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ struct ContentView: View {
6767
.background(textBackgroundColor)
6868
}
6969

70+
#if os(iOS)
7071
Section("No autocapitalization") {
7172
ResizingTextView(
7273
text: $text4,
7374
placeholder: "Placeholder")
7475
.autocapitalizationType(.none)
7576
.background(textBackgroundColor)
7677
}
78+
#endif
7779
}
7880
}
7981
}

0 commit comments

Comments
 (0)