On Thu, Dec 15, 2022 at 08:59:24PM -0600, David Young via Cocoa-dev wrote:
> Is it possible that a CGContext clip path will clip a shadow cast inside
> the clip path, if the CALayer whose content cast the shadow is fully
> outside of the clip path?  Any ideas why?

Just in case it helps somebody in the future: the answer seems to be
"yes."  If I enlarge the frame of my sublayer (the layer whose drawn
content actually casts the shadow) to enclose the entire shadow, then
the shadow will not be clipped, even though I have set the shadow offset
& opacity & radius on the superlayer.

I tried leaving the frame of the inner CALayer alone while enlarging
the frame of the superlayer so that it enclosed the whole shadow.  That
didn't help: the shadow was still clipped.

Dave

-- 
David Young
dyo...@pobox.com    Urbana, IL    (217) 721-9981
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to