Fix gradient

This commit is contained in:
Arkadiusz Fal
2022-12-20 23:21:12 +01:00
parent 41ac15b204
commit ce9c3fbd74
4 changed files with 52 additions and 22 deletions

View File

@@ -9,11 +9,19 @@ struct PlayerBackendView: View {
var body: some View {
ZStack(alignment: .top) {
Group {
switch player.activeBackend {
case .mpv:
player.mpvPlayerView
case .appleAVPlayer:
player.avPlayerView
ZStack {
Group {
switch player.activeBackend {
case .mpv:
player.mpvPlayerView
case .appleAVPlayer:
player.avPlayerView
}
}
.zIndex(0)
ControlsGradientView()
.zIndex(1)
}
}
.overlay(GeometryReader { proxy in