//
//  Subtasks.swift
//  Subtasks
//

import Adwaita

@main
struct Subtasks: App {

    @State private var tasks: [Task] = [
        .init(label: "Hello"),
        .init(label: "World"),
        .init(label: "Complete", done: true)
    ]
    let app: AdwaitaApp = .init(id: "io.github.david_swift.Subtasks")

    var scene: Scene {
        Window(id: "main") { _ in
            TaskList(tasks: $tasks)
        }
        .defaultSize(width: 450, height: 300)
    }

}
