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 JoeOsborn committed Nov 2, 2023
1 parent 4843dfe commit fa5c4e6
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 fa5c4e6

Please sign in to comment.