From 9a35187cec3199e6ae331b5d998d64dcf57fb302 Mon Sep 17 00:00:00 2001 From: Ilya Laktyushin Date: Sat, 9 Feb 2019 00:19:03 +0400 Subject: [PATCH] Small fix --- TelegramUI/VolumeChangeDetection.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TelegramUI/VolumeChangeDetection.swift b/TelegramUI/VolumeChangeDetection.swift index ee53dafa27..529f0cca50 100644 --- a/TelegramUI/VolumeChangeDetection.swift +++ b/TelegramUI/VolumeChangeDetection.swift @@ -15,7 +15,7 @@ class VolumeChangeDetector: NSObject { private var ignoreAdjustmentOnce = false init(view: UIView, valueChanged: @escaping () -> Void) { - self.control = MPVolumeView(frame: CGRect(origin: CGPoint(), size: CGSize(width: 100.0, height: 20.0))) + self.control = MPVolumeView(frame: CGRect(origin: CGPoint(x: 0.0, y: -64.0), size: CGSize(width: 100.0, height: 20.0))) self.currentValue = AVAudioSession.sharedInstance().outputVolume super.init()