briancoyner / Visual-Effects-Shadow

Add a drop shadow to a UIVisualEffectView using a 9-part UIImage.
https://briancoyner.github.io
MIT License
62 stars 7 forks source link

No shadow with cornerRadius = 0.0 #1

Open bxem44 opened 5 years ago

bxem44 commented 5 years ago

Am I missing something or why is no shadow displayed when the corner radius is set to 0.0?

briancoyner commented 5 years ago

@BaranEm the demo code used to generate the shadow image uses the corner radius to calculate the cap insets. When the radius is zero, then the cap insets are zero, which is probably why you're seeing the reported issue. I'll see about adjusting the shadow image generation function sometime in the next week or so.

bxem44 commented 5 years ago

@briancoyner Okay that sounds great!