I can reproduce this in a bare bones 10 line SwiftUI Mac Catalyst app.
import SwiftUI
@main
struct TextFieldApp: App {
@State private var text: String = ""
var body: some Scene {
WindowGroup {
TextField("Text", text: $text)
}
}
}
Run the app (don't even need to give the TextField focus)
Give focus to another app
Give focus to the app again and the message is logged to the console.
Apple M3 Pro
Sonoma 14.7.1
Xcode Version 16.0 (16A242d)
Hi @nathanfusselman I'm also running Xcode 15 Beta 7 and structured logging doesn't seem to be working for me either. I'm using an iOS 17 simulator and I remember structured logging working just fine in the previous beta versions.
I can reproduce this in a bare bones 10 line SwiftUI Mac Catalyst app.
import SwiftUI
@main
struct TextFieldApp: App {
@State private var text: String = ""
var body: some Scene {
WindowGroup {
TextField("Text", text: $text)
}
}
}
Run the app (don't even need to give the TextField focus)
Give focus to another app
Give focus to the app again and the message is logged to the console.
Apple M3 Pro
Sonoma 14.7.1
Xcode Version 16.0 (16A242d)
Hi @nathanfusselman I'm also running Xcode 15 Beta 7 and structured logging doesn't seem to be working for me either. I'm using an iOS 17 simulator and I remember structured logging working just fine in the previous beta versions.