-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.swift
More file actions
23 lines (21 loc) · 786 Bytes
/
index.swift
File metadata and controls
23 lines (21 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import WidgetKit
import SwiftUI
@main
struct exportWidgets: WidgetBundle {
@WidgetBundleBuilder
var body: some Widget {
widgets()
}
private func widgets() -> some Widget {
if #available(iOS 26, *) {
return WidgetBundleBuilder.buildBlock( widget(),
// widgetControl(),
WidgetLiveActivity(),
WidgetLiveActivityAlarm())
} else {
return WidgetBundleBuilder.buildBlock( widget(),
// widgetControl(),
WidgetLiveActivity())
}
}
}