I have an animated CALayer which is dropping a shadow. That is what I intended to do but I am looking for way to have a solid shadow without blur. Changing the blur radius does not save my problem.
Any ideas?
Many thanks.
myLayer.shadowRadius = 3;
//shadowBlurRadius
myLayer.shadowColor = [[UIColor greenColor] CGColor];
//intended is to get a green solid shadow without blur
If you want no blurring, you can:
The
shadowRadiusdictates the amount of blur.shadowOffsetdictates where the shadow goes.