From d9ea06008bdfbd4d5223ec430d0ac4e8a808b4e6 Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Tue, 11 Oct 2022 14:54:53 +1100 Subject: [PATCH] clean --- Session/Calls/CallVC.swift | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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()