Disable gradient on iOS 14

This commit is contained in:
Arkadiusz Fal 2022-12-21 00:18:13 +01:00
parent 5b482323a0
commit 69e9869fe9

View File

@ -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
}
}