mirror of
https://github.com/libretro/RetroArch
synced 2025-03-01 07:13:35 +00:00
iOS 17/Xcode 15 update: Fix iOS Widget (#15796)
This commit is contained in:
parent
0ef36ab15f
commit
b6ee341507
@ -34,10 +34,18 @@ struct SimpleEntry: TimelineEntry {
|
|||||||
|
|
||||||
struct RetroArchImageView : View {
|
struct RetroArchImageView : View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
|
if #available(iOSApplicationExtension 17.0, *) {
|
||||||
ZStack {
|
ZStack {
|
||||||
AccessoryWidgetBackground()
|
AccessoryWidgetBackground()
|
||||||
Image("logo")
|
Image("logo")
|
||||||
}
|
}
|
||||||
|
.containerBackground(for: .widget) {}
|
||||||
|
} else {
|
||||||
|
ZStack {
|
||||||
|
AccessoryWidgetBackground()
|
||||||
|
Image("logo")
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user