struct ContentView: View {
@State var text = "[This is some long text that will be cut off at the end of the text editor]"
var body: some View {
Text(text).opacity(0.0).padding()
.overlay { TextEditor(text: $text) }
}
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: