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

Quickstart with CALayer and CABasicAnimation

Quickstart with CALayer and CABasicAnimation

What is CALayer? CALayer is an object from the Core Animation framework. Each UIView backed by CALayer class, and you can easily find it in view.layer property. This class helps us to modify views and animate them. Basically, you animate a layer of view, but UIView size, position, etc depend on the layer property. So, […]

READ MORE