Conforms RefreshAllAppsWidgetIntent to ForegroundContinuableIntent

This commit is contained in:
Riley Testut
2023-09-13 17:25:49 -05:00
committed by Magesh K
parent 55ccb723e5
commit d89a15f74b

View File

@@ -40,6 +40,6 @@ struct RefreshAllAppsWidgetIntent: AppIntent, ProgressReportingIntent
// https://mastodon.social/@mgorbach/110812347476671807
//
// Unfortunately `ForegroundContinuableIntent` is marked as unavailable in app extensions,
// so we conform to AudioPlaybackIntent instead despite not playing audio ¯\_()_/¯
@available(iOS 17, *)
extension RefreshAllAppsWidgetIntent: AudioPlaybackIntent {}
// so we "conform" RefreshAllAppsWidgetIntent to it in an `unavailable` extension ¯\_()_/¯
@available(iOS, unavailable)
extension RefreshAllAppsWidgetIntent: ForegroundContinuableIntent {}