build fix - ios widget (#15809)

This commit is contained in:
Eric Warmenhoven 2023-10-16 09:56:45 -04:00 committed by GitHub
parent 2557282ea3
commit b71d09a31f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()
@ -46,6 +47,12 @@ struct RetroArchImageView : View {
Image("logo")
}
}
#else
ZStack {
AccessoryWidgetBackground()
Image("logo")
}
#endif
}
}