I
Size: a a a
I
R
V
АА
I
KS
S
KR

NK
A
KR
АА
АА
KR
SF
NK
func simpleShadow(with cornerRadius: CGFloat,
offset: CGSize = .zero,
shadowRadius: CGFloat = 2,
color: UIColor = .black,
path: CGPath? = nil) {
let path = path ?? UIBezierPath(roundedRect: bounds, cornerRadius: cornerRadius).cgPath
let layer = CAShapeLayer()
layer.masksToBounds = false
layer.shadowPath = path
layer.shadowRadius = shadowRadius
layer.shadowOpacity = 1
layer.shadowColor = color.cgColor
layer.shadowOffset = offset
self.layer.insertSublayer(at: 0)
}
AU
AU