File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ struct ContentView: View {
1818 var body : some View {
1919 ScrollView {
2020 VStack {
21- ExampleSection ( " Resizing automatically (Default)" ) {
21+ ExampleSection ( " Self-sizing automatically (Default)" ) {
2222 ResizingTextView ( text: $text1)
2323 }
2424
@@ -58,12 +58,13 @@ struct ContentView: View {
5858 )
5959 }
6060
61- ExampleSection ( " Selectable, uneditable, non-greedy short label " ) {
61+ ExampleSection ( " Selectable, uneditable, non greedy " ) {
6262 ResizingTextView (
6363 text: . constant( " Lorem ipsum " ) ,
6464 isEditable: false ,
6565 hasGreedyWidth: false
6666 )
67+ . background ( . yellow)
6768 }
6869#if os(iOS)
6970 ExampleSection ( " No autocapitalization " ) {
@@ -111,8 +112,6 @@ private struct ExampleSection<Content: View>: View {
111112 }
112113}
113114
114- struct ContentView_Previews : PreviewProvider {
115- static var previews : some View {
116- ContentView ( )
117- }
115+ #Preview {
116+ ContentView ( )
118117}
You can’t perform that action at this time.
0 commit comments