I'm using SwiftUI with Big Sur and the life cycle of SwiftUI (not AppDelegate):
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}
In this case, I can open multiple windows with cmd+n. How can I find out, which window is the one that is focused?