Top "Cashapelayer" questions

CAShapeLayer is a special purpose CALayer subclass for drawing animatable shapes using cubic Bezier splines.

Create custom rounded rectangle button corner on top-left?

I have a custom button that I want to make top-left border of it look like normal round rectangle. I …

ios objective-c cocoa-touch cashapelayer
UIImagePickerController editing view circle overlay

I've been able to get pretty far with what I've been wanting to accomplish, and that's to replicate iOS's built …

ios objective-c ios7 uiimagepickercontroller cashapelayer
UIView Layer Mask Animate

I am trying to animate the mask layer on a UIView. Basically this code displays the image below: let bounds: …

swift uiview mask layer cashapelayer
Detecting a tap on a CAShapeLayer in Swift?

I'm quite new to iOS Development (so please forgive my ineptitude - I've looked everywhere!), and was looking to find …

ios swift cashapelayer
Drawing a line with Bezierpath using CAShapeLayer object

I am making an image editor which can create different shapes objects like circle, triangle and square which can also …

ios objective-c uibezierpath cashapelayer
How to fill a CAShapeLayer with an angled gradient

How do I fill a CAShapeLayer() with a gradient and on an angle of 45 degrees? For example, in Image 1, the …

ios swift optimization uibezierpath cashapelayer
How to give cornerRadius for UIBezierPath

I created a rectangle using following code and now I need to rounded the corners of this rectangle. but I …

ios swift uibezierpath cashapelayer cornerradius
iOS animate/morph shape from circle to square

I try to change a circle into a square and vice versa and I am almost there. However it doesn't …

ios animation calayer cabasicanimation cashapelayer
How to draw a filled path/shape in different colors

I need to color a shape on my screen any color I wish. I am currently trying to do this …

ios objective-c cocoa-touch cgpath cashapelayer
Scale CGPath to Fit UIVIew

I need to know how I can scale down or up CGPath so it can fit UIView? Set the background …

ios uiview core-graphics cgpath cashapelayer