mirror of
https://github.com/libretro/RetroArch
synced 2025-04-24 06:02:36 +00:00
build fix - ios widget (#15809)
This commit is contained in:
parent
2557282ea3
commit
b71d09a31f
@ -34,6 +34,7 @@ struct SimpleEntry: TimelineEntry {
|
|||||||
|
|
||||||
struct RetroArchImageView : View {
|
struct RetroArchImageView : View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
#if swift(>=5.9)
|
||||||
if #available(iOSApplicationExtension 17.0, *) {
|
if #available(iOSApplicationExtension 17.0, *) {
|
||||||
ZStack {
|
ZStack {
|
||||||
AccessoryWidgetBackground()
|
AccessoryWidgetBackground()
|
||||||
@ -46,6 +47,12 @@ struct RetroArchImageView : View {
|
|||||||
Image("logo")
|
Image("logo")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
ZStack {
|
||||||
|
AccessoryWidgetBackground()
|
||||||
|
Image("logo")
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user