diff --git a/Session/Calls/CallVC.swift b/Session/Calls/CallVC.swift index 7b128fb04..6cbb255eb 100644 --- a/Session/Calls/CallVC.swift +++ b/Session/Calls/CallVC.swift @@ -363,16 +363,16 @@ final class CallVC: UIViewController, VideoPreviewDelegate { NotificationCenter.default.addObserver(self, selector: #selector(audioRouteDidChange), name: AVAudioSession.routeChangeNotification, object: nil) } - override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { - super.viewWillTransition(to: size, with: coordinator) - - if let existingSublayer = fadeView.layer.sublayers?[0] as? CAGradientLayer { - let layer = CAGradientLayer() - layer.frame = CGRect(x: 0, y: 0, width: size.width, height: 64) - layer.colors = existingSublayer.colors - fadeView.layer.replaceSublayer(existingSublayer, with: layer) - } - } +// override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { +// super.viewWillTransition(to: size, with: coordinator) +// +// if let existingSublayer = fadeView.layer.sublayers?[0] as? CAGradientLayer { +// let layer = CAGradientLayer() +// layer.frame = CGRect(x: 0, y: 0, width: size.width, height: 64) +// layer.colors = existingSublayer.colors +// fadeView.layer.replaceSublayer(existingSublayer, with: layer) +// } +// } deinit { UIDevice.current.endGeneratingDeviceOrientationNotifications()