Sources/OrgstarWidgets/OrgstarWidgets.swift

a866e469a3568bf7a2829a8dd2a56317ced4736e
orgstar/Sources/OrgstarWidgets/OrgstarWidgets.swift history · blame · raw

19 lines · 528 bytes

 1import AppIntents
 2import OrgApp
 3import SwiftUI
 4import WidgetKit
 5
 6/// The agenda on the Home Screen and the Lock Screen, and the running clock's Live Activity.
 7@main
 8struct OrgstarWidgets: WidgetBundle {
 9    var body: some Widget {
10        TodayWidget()
11        UpNextWidget()
12        ClockActivityWidget()
13    }
14}
15
16/// The App Intents OrgApp declares: the Live Activity's Clock Out button.
17struct OrgstarWidgetIntents: AppIntentsPackage {
18    static var includedPackages: [any AppIntentsPackage.Type] { [OrgAppIntents.self] }
19}