correct typos

This commit is contained in:
Kwangmin Bae 2022-02-05 19:10:34 +09:00 committed by GitHub
parent 682f79631c
commit 5f153c0b97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -102,7 +102,7 @@ class VLCPlayerViewController: UIViewController {
view.addSubview(videoContentView)
view.addSubview(mainGestureView)
// Setup BrightnessOverlayView
// Setup systemControlOverlayLabel
systemControlOverlayLabel.alpha = 0
systemControlOverlayLabel.translatesAutoresizingMaskIntoConstraints = false
systemControlOverlayLabel.font = .systemFont(ofSize: 48)
@ -284,10 +284,10 @@ class VLCPlayerViewController: UIViewController {
if panBeganPoint.x < mainGestureViewHalfWidth {
UIScreen.main.brightness = panBeganBrightness - changedValue
flashBrightnessOverlay()
showBrightnessOverlay()
} else if let view = volumeView.subviews.first as? UISlider {
view.value = panBeganVolumeValue - Float(changedValue)
flashVolumeOverlay()
showVolumeOverlay()
}
default:
hideSystemControlOverlay()
@ -614,7 +614,7 @@ extension VLCPlayerViewController {
// MARK: Show/Hide System Control
extension VLCPlayerViewController {
private func flashBrightnessOverlay() {
private func showBrightnessOverlay() {
guard !displayingOverlay else { return }
let imageAttachment = NSTextAttachment()
@ -632,7 +632,7 @@ extension VLCPlayerViewController {
}
}
private func flashVolumeOverlay() {
private func showVolumeOverlay() {
guard !displayingOverlay,
let value = (volumeView.subviews.first as? UISlider)?.value else { return }