Re: Layers and shadows. Is it possible to have a layer with a shadow and no background color?


Steve Mills
 

On Jun 23, 2021, at 10:46, Alex Zavatone via groups.io <zav=mac.com@groups.io> wrote:

In my experiments, I noticed that if you simply create a layer for a view and attempt to add a shadow, nothing appears.

Unless some color is applied to the border or the backgroundColor of the layer, no shadow will appear.

If clearColor is used for the background, then no shadow will appear.
What about using black or white at a very low alpha, like .01%?

Steve via iPad

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