From 17246ca139b02a74e83fbd278027a35a3c9a4387 Mon Sep 17 00:00:00 2001 From: ryuchanghwi Date: Thu, 13 Jul 2023 17:41:58 +0900 Subject: [PATCH] =?UTF-8?q?=E2=9C=85[CHORE]=20:=20=EB=A9=94=EC=84=9C?= =?UTF-8?q?=EB=93=9C=20=EB=AA=85=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Sources/SDSKit/Elevations/SDSElevations.swift | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Sources/SDSKit/Elevations/SDSElevations.swift b/Sources/SDSKit/Elevations/SDSElevations.swift index 35891f4..a7917dc 100644 --- a/Sources/SDSKit/Elevations/SDSElevations.swift +++ b/Sources/SDSKit/Elevations/SDSElevations.swift @@ -16,7 +16,7 @@ extension UIView { addSubview(blurEffectView) } - public func applyBlurAndDepth3_2Shadow() { + public func applyDepth3_2Shadow() { let blurEffect = UIBlurEffect(style: .light) let blurEffectView = UIVisualEffectView(effect: blurEffect) blurEffectView.alpha = 1 @@ -46,20 +46,20 @@ extension CALayer { shadowPath = nil } - public func applyDepth2_1Shadow() { + public func applyDepth2_2Shadow() { masksToBounds = false shadowColor = UIColor(hex: 0xE9EFEF).cgColor - shadowOpacity = 0.1 - shadowOffset = CGSize(width: -3, height: 3) - shadowRadius = 6 / UIScreen.main.scale + shadowOpacity = 1 + shadowOffset = CGSize(width: -3, height: -3) + shadowRadius = 10 / UIScreen.main.scale shadowPath = nil } - public func applyDepth2_2Shadow() { + public func applyDepth2_1Shadow() { masksToBounds = false shadowColor = UIColor(hex: 0xABBABA).cgColor - shadowOpacity = 0.2 + shadowOpacity = 0.12 shadowOffset = CGSize(width: 6, height: 7) - shadowRadius = 6 / UIScreen.main.scale + shadowRadius = 25 / UIScreen.main.scale let rect = bounds.insetBy(dx: -11, dy: -11) shadowPath = UIBezierPath(rect: rect).cgPath } @@ -72,7 +72,7 @@ extension CALayer { shadowPath = nil } - public func applyBlurAndDepth3_1Shadow() { + public func applyDepthAndDepth3_1Shadow() { masksToBounds = false shadowColor = UIColor(hex: 0x000000).cgColor shadowOpacity = 0.25 @@ -121,4 +121,3 @@ extension CALayer { } } } -