Posts

Post not yet marked as solved
1 Replies
692 Views
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() 				} 		} }
Posted
by rawbee.
Last updated
.