Skip to content

Commit

Permalink
build fix - ios widget (libretro#15809)
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored and Sunderland93 committed Dec 26, 2024
1 parent 743f9c5 commit 7b83d62
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -46,6 +47,12 @@ struct RetroArchImageView : View {
Image("logo")
}
}
#else
ZStack {
AccessoryWidgetBackground()
Image("logo")
}
#endif
}
}

Expand Down

0 comments on commit 7b83d62

Please sign in to comment.