Re: Adding multiple shadows to a UIView in either Objective-C or Swift


Carl Hoefs
 

In past code, I've used the behavior that layers will render a shadow whose strength is in accord with the opacity of the fill color. 0 opacity (clearColor) gives no shadow at all.

I think you may be fighting the frameworks here...

-Carl

On Jun 16, 2021, at 8:33 AM, Alex Zavatone via groups.io <zav@...> wrote:

Apparently, layers do now render shadows at all if the layer is of clearColor.

Join cocoa@apple-dev.groups.io to automatically receive all group messages.