Small fix

This commit is contained in:
Ilya Laktyushin
2019-02-09 00:19:03 +04:00
parent 8dddb45af2
commit 9a35187cec

View File

@@ -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()