iOS 17/Xcode 15 update: Fix iOS Widget (#15796)

This commit is contained in:
Eric Warmenhoven 2023-10-13 13:28:56 -04:00 committed by GitHub
parent 0ef36ab15f
commit b6ee341507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,10 +34,18 @@ struct SimpleEntry: TimelineEntry {
struct RetroArchImageView : View {
var body: some View {
if #available(iOSApplicationExtension 17.0, *) {
ZStack {
AccessoryWidgetBackground()
Image("logo")
}
.containerBackground(for: .widget) {}
} else {
ZStack {
AccessoryWidgetBackground()
Image("logo")
}
}
}
}