0

Problem - How do I add shadow to ImageView that looks like the attached?

enter image description here

What I've done so far

        imageView.layer.shadowColor = UIColor.gray.cgColor
        imageView.layer.shadowOpacity = 0.3
        imageView.layer.shadowOffset = CGSize.zero
        imageView.layer.shadowRadius = 5


        imageView.layer.shadowOffset = CGSize(width: 3, height: 3)
        imageView.layer.masksToBounds = false

Doesn't look like the attached. Can someone please help?

Pota Onasys
  • 1,302
  • 3
  • 15
  • 18

0 Answers0