I'm using SwiftUI on Mac Catalyst:
@main
struct TodoApp: App {
@StateObject private var eventData = TodoData()
var body: some Scene {
WindowGroup {
ContentView().environmentObject(eventData)
}
#if os(macOS)
Settings{
TodoSettings()
}
#endif
}
}