Post

Replies

Boosts

Views

Activity

Why does a Spacer push the text outside of the TextEditor frame?
In the code snippet below, why does the frame of the TextEditor stay within the safe area, while the text is pushed up to the top of the screen, beyond the safe area, and outside of the TextEditor's frame? import SwiftUI struct ContentView: View { 		@State var myText = "Hello, World" 		 		var body: some View { 				VStack { 						TextEditor(text: $myText) 								.frame(height: 200) 								.border(Color.red) 						Spacer() 				} 		} }
1
0
790
Feb ’21