Re: Multiple shadows in iOS on a view.

2021-06-11 Thread Mike Abdullah via Cocoa-dev
Your description seems a bit confused here. Why declare the applySketchShadow() method but never use it? The force conversion of UIBezierPath to CGPath smells, and suggests you never hit this code path. If so, I think you may have layers with no content and no path, so will not generate a shado

Multiple shadows in iOS on a view.

2021-06-10 Thread Alex Zavatone via Cocoa-dev
Does anyone have any tips for adding multiple shadows to a view or a view’s CGLayer on iOS in either Objectice-C or Swift? I’ve tried creating multiple CGLayers and adding shadows to each, then inserting them in a view, creating multiple views and inserting the view above or below the current v