From 54dd55db8c19667939536e18535ac9c45817e442 Mon Sep 17 00:00:00 2001 From: ivar Date: Wed, 6 May 2026 21:21:17 +0200 Subject: refactor: remove duplicate source files now served from Shared/ --- Solsnu.Widget/Solsnu_WidgetBundle.swift | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'Solsnu.Widget/Solsnu_WidgetBundle.swift') 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]) } } -- cgit v1.3