Skip to content

Commit

Permalink
iOS 17/Xcode 15 update: Fix iOS Widget
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven committed Oct 13, 2023
1 parent 0ef36ab commit e6d9812
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions pkg/apple/RetroArchWidgetExtension/RetroArchWidgetExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
}
}
}
Expand Down

0 comments on commit e6d9812

Please sign in to comment.