From e16180c007350123eb16e793849b7f71402b9f75 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 12 Oct 2022 09:05:21 +1100 Subject: [PATCH] Removed commented code and fixed a minor layout issue on SE devices --- Session/Calls/CallVC.swift | 11 ----------- SessionUIKit/Components/Separator.swift | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/Session/Calls/CallVC.swift b/Session/Calls/CallVC.swift index 6cbb255eb..adb72deb1 100644 --- a/Session/Calls/CallVC.swift +++ b/Session/Calls/CallVC.swift @@ -363,17 +363,6 @@ 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) -// } -// } - deinit { UIDevice.current.endGeneratingDeviceOrientationNotifications() NotificationCenter.default.removeObserver(self) diff --git a/SessionUIKit/Components/Separator.swift b/SessionUIKit/Components/Separator.swift index f4d8957c3..178c27748 100644 --- a/SessionUIKit/Components/Separator.swift +++ b/SessionUIKit/Components/Separator.swift @@ -25,6 +25,7 @@ public final class Separator: UIView { private lazy var titleLabel: UILabel = { let result = UILabel() + result.setContentCompressionResistancePriority(.required, for: .vertical) result.font = .systemFont(ofSize: Values.smallFontSize) result.themeTextColor = .textSecondary result.textAlignment = .center