From b6ee34150790ad6353bd09c227ef74f7aae9c79f Mon Sep 17 00:00:00 2001 From: Eric Warmenhoven Date: Fri, 13 Oct 2023 13:28:56 -0400 Subject: [PATCH] iOS 17/Xcode 15 update: Fix iOS Widget (#15796) --- .../RetroArchWidgetExtension.swift | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift b/pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift index 09bd53e9a80..5f39b57adc8 100644 --- a/pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift +++ b/pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift @@ -34,9 +34,17 @@ struct SimpleEntry: TimelineEntry { struct RetroArchImageView : View { var body: some View { - ZStack { - AccessoryWidgetBackground() - Image("logo") + if #available(iOSApplicationExtension 17.0, *) { + ZStack { + AccessoryWidgetBackground() + Image("logo") + } + .containerBackground(for: .widget) {} + } else { + ZStack { + AccessoryWidgetBackground() + Image("logo") + } } } }