@@ -64,7 +64,8 @@ class CardContainer: UIView {
6464 private let smallTransform: CGAffineTransform
6565 private let normalTransform = CGAffineTransform(scaleX: 1, y: 1)
6666 private let shadowRadius: CGFloat = 12
67− private let shadowOpacity: Float = 0.3
67+ private let shadowOpacity: Float = 0.15
68+ private let shadowOffset: CGFloat = 16
6869
6970 override init(frame: CGRect) {
7071 card = CardView(frame: frame)
@@ -89,9 +90,11 @@ class CardContainer: UIView {
8990 super.layoutSubviews()
9091 card.layoutIfNeeded()
9192 self.frame = card.frame
92− shadowView.layer.shadowPath = CGPath(roundedRect: card.frame, cornerWidth: card.layer.cornerRadius, cornerHeight: card.layer.cornerRadius, transform: nil)
93+ shadowView.layer.shadowPath = CGPath(roundedRect: card.frame, cornerWidth: card.layer.cornerRadius, cornerHeight: card.layer.cornerRadius,
94+ transform: nil)
95+ shadowView.layer.shadowOffset.height = shadowOffset
9396 shadowView.frame = card.frame
94− blurView.frame = card.frame
97+ blurView.frame = CGRect(x: -shadowRadius, y: 0, width: card.frame.width + shadowRadius*2, height: card.frame.height + shadowRadius + shadowOffset)
9598 }
9699
97100}