There is no problem with entering English, but a warning appears when entering Chinese.
[Security] This method should not be called on the main thread as it may lead to UI unresponsiveness.
TextField also has the same problem.
macOS: 13.0.1 (22A400)
struct ContentView: View {
@State var searchString: String = ""
var body: some View {
VStack {
TextEditor(text: $searchString)
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
}
}