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?

Rue Vitale
  • 1,549
  • 4
  • 17
  • 24

0 Answers0