mirror of
https://github.com/yattee/yattee.git
synced 2025-04-28 16:00:33 +05:30
Disable gradient on iOS 14
This commit is contained in:
parent
5b482323a0
commit
69e9869fe9
@ -207,16 +207,18 @@ struct VideoDetails: View {
|
|||||||
.zIndex(1)
|
.zIndex(1)
|
||||||
|
|
||||||
#if !os(tvOS)
|
#if !os(tvOS)
|
||||||
Rectangle()
|
if #available(iOS 15, macOS 12, *) {
|
||||||
.fill(
|
Rectangle()
|
||||||
LinearGradient(
|
.fill(
|
||||||
gradient: .init(colors: [fadePlaceholderStartColor, .clear]),
|
LinearGradient(
|
||||||
startPoint: .top,
|
gradient: .init(colors: [fadePlaceholderStartColor, .clear]),
|
||||||
endPoint: .bottom
|
startPoint: .top,
|
||||||
|
endPoint: .bottom
|
||||||
|
)
|
||||||
)
|
)
|
||||||
)
|
.zIndex(0)
|
||||||
.zIndex(0)
|
.frame(maxHeight: 22)
|
||||||
.frame(maxHeight: 22)
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user