img

Software Development Blog

How to solve the masksToBounds problem with the shadow of UIView?

How to solve the masksToBounds problem with the shadow of UIView?

Github project In the previous post, I showed how to add different properties like a shadow, border, image, cornerRadius to CALayer. All layers have masksToBounds property. If masksToBounds = true – It will clip all layers that are bigger than their superlayer. And this is a useful property. As we know the shadow is an […]

READ MORE