fix normal overlay

This commit is contained in:
Ethan Pippin 2022-01-04 20:39:08 -07:00
parent 07ee90c29f
commit 8d6e5fb897
1 changed files with 4 additions and 3 deletions

View File

@ -359,12 +359,13 @@ struct VLCPlayerOverlayView: View {
var body: some View {
if viewModel.overlayType == .normal {
mainBody
.contentShape(Rectangle())
.onTapGesture {
viewModel.playerOverlayDelegate?.didGenerallyTap()
}
.background {
Color(uiColor: .black.withAlphaComponent(0.5))
.ignoresSafeArea()
.onTapGesture {
viewModel.playerOverlayDelegate?.didGenerallyTap()
}
}
} else {
mainBody