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