Settings not showing

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

Please show more code. And specially ToDoSettings.

If not yet done, you should read this : https://developer.apple.com/documentation/swiftui/settings

TodoSettings:

struct TodoSettings: View {     @AppStorage("deleteItemWhenDone") var deleteItemWhenDone: Bool = false     var body: some View {         Toggle(isOn: $deleteItemWhenDone) {             Text("Delete item when done")         }     } }

TodoSettings:

struct TodoSettings: View {
    @AppStorage("deleteItemWhenDone") var deleteItemWhenDone: Bool = false
    var body: some View {
        Toggle(isOn: $deleteItemWhenDone) {
            Text("Delete item when done")
        }
    }
}
Settings not showing
 
 
Q