diff options
| author | ivar <i@oiee.no> | 2026-05-06 21:21:17 +0200 |
|---|---|---|
| committer | ivar <i@oiee.no> | 2026-05-06 21:21:17 +0200 |
| commit | 54dd55db8c19667939536e18535ac9c45817e442 (patch) | |
| tree | 7ccb609b16e731c6281aa8d23969fb51c42eb60f /Solsnu.Widget/Solsnu_WidgetBundle.swift | |
| parent | efae4d08083f454975f08a2c0c6871c6a3d41e95 (diff) | |
| download | solverv-54dd55db8c19667939536e18535ac9c45817e442.tar.xz solverv-54dd55db8c19667939536e18535ac9c45817e442.zip | |
refactor: remove duplicate source files now served from Shared/
Diffstat (limited to 'Solsnu.Widget/Solsnu_WidgetBundle.swift')
| -rw-r--r-- | Solsnu.Widget/Solsnu_WidgetBundle.swift | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/Solsnu.Widget/Solsnu_WidgetBundle.swift b/Solsnu.Widget/Solsnu_WidgetBundle.swift index 8a7b718..7bd3f1a 100644 --- a/Solsnu.Widget/Solsnu_WidgetBundle.swift +++ b/Solsnu.Widget/Solsnu_WidgetBundle.swift @@ -13,11 +13,9 @@ struct Solsnu_WidgetBundle: WidgetBundle { var body: some Widget { Solsnu_Widget() Solsnu_WidgetMedium() - Solsnu_WidgetLarge() } } -// Medium widget struct Solsnu_WidgetMedium: Widget { let kind: String = "Solsnu_Widget_Medium" @@ -34,27 +32,6 @@ struct Solsnu_WidgetMedium: Widget { } .configurationDisplayName("Solstice Countdown") .description("Days until next solstice or equinox") - .supportedFamilies([.systemMedium]) - } -} - -// Large widget -struct Solsnu_WidgetLarge: Widget { - let kind: String = "Solsnu_Widget_Large" - - var body: some WidgetConfiguration { - StaticConfiguration(kind: kind, provider: Provider()) { entry in - if #available(iOS 17.0, *) { - LargeWidgetView(entry: entry) - .containerBackground(.fill.tertiary, for: .widget) - } else { - LargeWidgetView(entry: entry) - .padding() - .background() - } - } - .configurationDisplayName("Solstice Countdown") - .description("Days until next solstice or equinox") - .supportedFamilies([.systemLarge]) + .supportedFamilies([.systemMedium,.systemSmall]) } } |
