From 48bdfb8343220d8cf6c01425cb31399806c6a376 Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Mon, 16 Oct 2023 00:42:02 -0400 Subject: [PATCH] build fix - ios widget --- .../RetroArchWidgetExtension.swift | 7 +++++++ 1 file changed, 7 insertions(+) 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 } }