make opacity viewable but also allowing it to have transparency

This commit is contained in:
Mousica 2025-10-17 22:30:42 +03:00 committed by GitHub
parent 4e10c8a466
commit a93244b2e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3604,7 +3604,7 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
private func showVolumeOverlay() {
volumeOverlay?.isHidden = false
UIView.animate(withDuration: 0.2) {
self.volumeOverlay?.alpha = 0.5
self.volumeOverlay?.alpha = 0.8
}
}
@ -3624,7 +3624,7 @@ class CustomMediaPlayerViewController: UIViewController, UIGestureRecognizerDele
private func showBrightnessOverlay() {
brightnessOverlay?.isHidden = false
UIView.animate(withDuration: 0.2) {
self.brightnessOverlay?.alpha = 0.5
self.brightnessOverlay?.alpha = 0.8
}
}