Re: Adding multiple shadows to a UIView in either Objective-C or Swift
Well, it sure is an important detail. If no color is added or if you use a clear color, you get no shadow.toggle quoted message Show quoted text
I did find a sort of a solution though and this works as long as you don’t have a transparency on the image.
Duplicate the CALayer.
But that’s the problem? How?
Through NSKeyedArchiver or CAReplicatorLayer.
Two shadows on one UIView with 2 layers. Testing now with PNG and SVG images.
This also works.
Cheers and if anyone wants the code when I’m done, I’ll happily share it.