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