diff --git a/pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift b/pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift index 5f39b57adc8..903ad02bbc3 100644 --- a/pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift +++ b/pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift @@ -34,6 +34,7 @@ struct SimpleEntry: TimelineEntry { struct RetroArchImageView : View { var body: some View { +#if swift(>=5.9) if #available(iOSApplicationExtension 17.0, *) { ZStack { AccessoryWidgetBackground() @@ -46,6 +47,12 @@ struct RetroArchImageView : View { Image("logo") } } +#else + ZStack { + AccessoryWidgetBackground() + Image("logo") + } +#endif } }