diff --git a/Sources/Extensions/AppIntents/Widget/Details/WidgetDetailsAppIntentTimelineProvider.swift b/Sources/Extensions/AppIntents/Widget/Details/WidgetDetailsAppIntentTimelineProvider.swift index 43d8ce055..c4305bb37 100644 --- a/Sources/Extensions/AppIntents/Widget/Details/WidgetDetailsAppIntentTimelineProvider.swift +++ b/Sources/Extensions/AppIntents/Widget/Details/WidgetDetailsAppIntentTimelineProvider.swift @@ -21,7 +21,6 @@ struct WidgetDetailsAppIntentTimelineProvider: AppIntentTimelineProvider { func timeline(for configuration: WidgetDetailsAppIntent, in context: Context) async -> Timeline { do { let snapshot = try await entry(for: configuration, in: context) - Current.Log.debug("Reloading gauge widget") return .init( entries: [snapshot], policy: .after( @@ -35,7 +34,7 @@ struct WidgetDetailsAppIntentTimelineProvider: AppIntentTimelineProvider { entries: [placeholder(in: context)], policy: .after( Current.date() - .addingTimeInterval(WidgetDetailsDataSource.fastExpiration.converted(to: .seconds).value) + .addingTimeInterval(WidgetDetailsDataSource.expiration.converted(to: .seconds).value) ) ) } @@ -112,11 +111,7 @@ struct WidgetDetailsAppIntentTimelineProvider: AppIntentTimelineProvider { enum WidgetDetailsDataSource { static var expiration: Measurement { - .init(value: 2, unit: .hours) - } - - static var fastExpiration: Measurement { - .init(value: 1, unit: .hours) + .init(value: 15, unit: .minutes) } } diff --git a/Sources/Extensions/AppIntents/Widget/Gauge/WidgetGaugeAppIntentTimelineProvider.swift b/Sources/Extensions/AppIntents/Widget/Gauge/WidgetGaugeAppIntentTimelineProvider.swift index 69384e91e..4960a57fe 100644 --- a/Sources/Extensions/AppIntents/Widget/Gauge/WidgetGaugeAppIntentTimelineProvider.swift +++ b/Sources/Extensions/AppIntents/Widget/Gauge/WidgetGaugeAppIntentTimelineProvider.swift @@ -21,7 +21,6 @@ struct WidgetGaugeAppIntentTimelineProvider: AppIntentTimelineProvider { func timeline(for configuration: WidgetGaugeAppIntent, in context: Context) async -> Timeline { do { let snapshot = try await entry(for: configuration, in: context) - Current.Log.debug("Reloading gauge widget") return .init( entries: [snapshot], policy: .after( @@ -35,7 +34,7 @@ struct WidgetGaugeAppIntentTimelineProvider: AppIntentTimelineProvider { entries: [placeholder(in: context)], policy: .after( Current.date() - .addingTimeInterval(WidgetGaugeDataSource.fastExpiration.converted(to: .seconds).value) + .addingTimeInterval(WidgetGaugeDataSource.expiration.converted(to: .seconds).value) ) ) } @@ -121,11 +120,7 @@ struct WidgetGaugeAppIntentTimelineProvider: AppIntentTimelineProvider { enum WidgetGaugeDataSource { static var expiration: Measurement { - .init(value: 2, unit: .hours) - } - - static var fastExpiration: Measurement { - .init(value: 1, unit: .hours) + .init(value: 15, unit: .minutes) } }