Minor player fix

This commit is contained in:
Arkadiusz Fal 2023-05-25 14:53:33 +02:00
parent 2583be9401
commit ae144ea82f

View File

@ -316,6 +316,8 @@ struct VideoPlayerView: View {
} }
.id(player.currentVideo?.cacheKey) .id(player.currentVideo?.cacheKey)
.transition(.opacity) .transition(.opacity)
} else {
VStack {}
} }
} }
#endif #endif
@ -392,6 +394,8 @@ struct VideoPlayerView: View {
.background(colorScheme == .dark ? Color.black : Color.white) .background(colorScheme == .dark ? Color.black : Color.white)
} }
#endif #endif
} else {
VStack {}
} }
} }
.onChange(of: fullScreenPlayer) { newValue in .onChange(of: fullScreenPlayer) { newValue in