From fa45339f83fbcc6c916fc9202cb70bea3af78305 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 15 Apr 2019 10:18:41 -0600 Subject: [PATCH] move to public category --- .../Photos/SendMediaNavigationController.swift | 9 --------- SignalMessaging/categories/UIView+OWS.swift | 7 +++++++ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/Signal/src/ViewControllers/Photos/SendMediaNavigationController.swift b/Signal/src/ViewControllers/Photos/SendMediaNavigationController.swift index 6065a4178..4aaf1cb4a 100644 --- a/Signal/src/ViewControllers/Photos/SendMediaNavigationController.swift +++ b/Signal/src/ViewControllers/Photos/SendMediaNavigationController.swift @@ -647,12 +647,3 @@ private class DoneButton: UIView { delegate?.doneButtonWasTapped(self) } } - -extension UIView { - func setShadow(radius: CGFloat = 2.0, opacity: CGFloat = 0.66, offset: CGPoint = .zero, color: CGColor = UIColor.black.cgColor) { - layer.shadowColor = UIColor.black.cgColor - layer.shadowRadius = 2.0 - layer.shadowOpacity = 0.66 - layer.shadowOffset = .zero - } -} diff --git a/SignalMessaging/categories/UIView+OWS.swift b/SignalMessaging/categories/UIView+OWS.swift index 3e1453410..33012100f 100644 --- a/SignalMessaging/categories/UIView+OWS.swift +++ b/SignalMessaging/categories/UIView+OWS.swift @@ -126,6 +126,13 @@ extension UIView { constraints.append(subview.autoMatch(.height, to: .height, of: self, withMultiplier: 1.0, relation: .lessThanOrEqual)) return constraints } + + func setShadow(radius: CGFloat = 2.0, opacity: CGFloat = 0.66, offset: CGPoint = .zero, color: CGColor = UIColor.black.cgColor) { + layer.shadowColor = UIColor.black.cgColor + layer.shadowRadius = 2.0 + layer.shadowOpacity = 0.66 + layer.shadowOffset = .zero + } } // MARK: -