Same. I'm running Sonoma 14.5 on a 2021 Apple M1 Pro and get this message in Xcode every time I click on the text field in the simple box.
My entire app is:
import SwiftUI
@main
struct SwiftUITestApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
With a ContentView.swift of:
import SwiftUI
struct ContentView: View {
@State private var name: String = ""
@State private var greeting: String = ""
var body: some View {
VStack {
TextField("Enter your name", text: $name)
.padding()
.textFieldStyle(RoundedBorderTextFieldStyle())
Button(action: {
greeting = "Hello, \(name)!"
}) {
Text("Greet")
.padding()
.background(Color.blue)
.foregroundColor(.white)
.cornerRadius(4)
}
Text(greeting)
.padding()
.font(.largeTitle)
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}