Reputation: 376
Here's the code I've used to create the shadow:
shadowView.layer.shadowColor = UIColor.black.cgColor
shadowView.layer.shadowOpacity = 0.2
shadowView.layer.shadowOffset = CGSize.zero
shadowView.layer.shadowRadius = 4
shadowView.layer.shouldRasterize = true
Here's an image
Does anybody know how to fix this?
Thank you very much, I appreciate any kind of help
Upvotes: 0
Views: 56
Reputation: 376
I realized what I did wrong:
I accidentally set the shouldRasterize
property to true instead of false.
Maybe this helps someone else too
Upvotes: 1