Sources/OrgstarWidgets/OrgstarWidgets.swift
29 lines · 814 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; on the Mac, the agenda and habits on
8/// the desktop and in Notification Center.
9@main
10struct OrgstarWidgets: WidgetBundle {
11 var body: some Widget {
12 TodayWidget()
13 HabitsWidget()
14 UpNextWidget()
15 #if os(iOS)
16 CaptureWidget()
17 ClockActivityWidget()
18 CaptureControl()
19 ClockControl()
20 #endif
21 }
22}
23
24#if os(iOS)
25/// The App Intents OrgApp declares: the Live Activity's Clock Out button.
26struct OrgstarWidgetIntents: AppIntentsPackage {
27 static var includedPackages: [any AppIntentsPackage.Type] { [OrgAppIntents.self] }
28}
29#endif