TextEditor input Chinese leads to UI unresponsiveness in MacOS

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()
  }
}

this is a bug of XCode. update to 14.3, fixed.

Same problem in TextField on Xcode 15.1 MacOS 14.0

TextEditor input Chinese leads to UI unresponsiveness in MacOS
 
 
Q