Sources/OrgstarWidgets/OrgstarWidgets.swift

848c7b130274052f194a17fccd4e33e6bb30851d
orgstar/Sources/OrgstarWidgets/OrgstarWidgets.swift history · blame · raw

24 lines · 679 bytes

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