fix normal overlay
This commit is contained in:
parent
07ee90c29f
commit
8d6e5fb897
|
@ -359,12 +359,13 @@ struct VLCPlayerOverlayView: View {
|
||||||
var body: some View {
|
var body: some View {
|
||||||
if viewModel.overlayType == .normal {
|
if viewModel.overlayType == .normal {
|
||||||
mainBody
|
mainBody
|
||||||
|
.contentShape(Rectangle())
|
||||||
|
.onTapGesture {
|
||||||
|
viewModel.playerOverlayDelegate?.didGenerallyTap()
|
||||||
|
}
|
||||||
.background {
|
.background {
|
||||||
Color(uiColor: .black.withAlphaComponent(0.5))
|
Color(uiColor: .black.withAlphaComponent(0.5))
|
||||||
.ignoresSafeArea()
|
.ignoresSafeArea()
|
||||||
.onTapGesture {
|
|
||||||
viewModel.playerOverlayDelegate?.didGenerallyTap()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
mainBody
|
mainBody
|
||||||
|
|
Loading…
Reference in New Issue