Top "Calayer" questions

CALayer is a Core Animation class in the Quartz Core framework.

UIView animation vs CALayers

I'm struggling with conceptualizing animations with a CALayer as opposed to UIView's own animation methods. Throw "Core Animation" into this …

ios core-animation calayer uiviewanimation caanimation
How to save screenshot of a view with its subviews in Swift?

I want to capture a view with its subviews. I'm using this code to capture the screen: let view = self.…

ios swift uiview calayer screen-capture
Swift : Animate CALayer

In the code below I am trying to animate a CALayer from the left side of the screen to the …

ios swift animation calayer uilongpressgesturerecogni
Core Animation CALayer mask animation performance

We wanted to use a UITabBar in our iPhone app, but with one exception: we have a "sync" button which …

iphone objective-c ios core-animation calayer
Masking a CALayer - iPhone

I'm creating a custom on / off toggle switch for the iPhone (similar to the standard switch) and i'm at the …

iphone animation calayer mask
CABasicAnimation with CALayer path doesn't animate

I'm trying to animation the transition of a CALayer from normal corners to rounded corners. I only want to round …

core-animation calayer uibezierpath cgpath cabasicanimation
what is relation between masksToBounds and cornerRadius?

My scroll has some views that is cornerRadius = 10.0 and masksToBounds = YES. This causes a performance issue for scrolling my scroll …

iphone objective-c ios calayer cornerradius
Customize the Airplay button's appearance

I use a standard gradient overlay (done in photoshop) to make buttons look nicer in my app. I added an …

iphone ios overlay calayer airplay
How to add label or text in to CAShapeLayer

Here is my class and it'll draw a circle, it looks like this: class OvalLayer: CAShapeLayer { let animationDuration: CFTimeInterval = 0.3 override …

ios swift calayer core-text cashapelayer
Tagging CALayers in iPhone

I am looking for a general way to be able to search for a unique CALayer in a hierarchy without …

search calayer