Top "Cagradientlayer" questions

`CAGradientLayer` is a special purpose `CALayer` subclass for drawing animatable linear gradients.

How to resize a CAGradientLayer after rotation?

I'm adding a CAGradientLayer to a view. When the view is auto-resized (such as after a rotation) the gradient layer …

ios objective-c cocoa-touch cocoa cagradientlayer
Angled Gradient Layer

I have custom UIView class that renders a gradient in Swift 2. I'm struggling with making an angled gradient so that …

swift uiview swift2 gradient cagradientlayer
How to give "locations" to CAGradientLayer

I have created CAGradientLayer having three colors, i need to give each color different locations. Example: Red = 0 to 50 % Yellow = 51 to 80 % …

ios core-graphics linear-gradients cagradientlayer
Filling a path with a gradient on iOS

On a CAShapeLayer, I've drawn a closed UIBezierPath. I can fill this shape by setting the fillColor, however I want …

ios uibezierpath cagradientlayer
Defining angle of the gradient using CAGradientLayer

I am trying to draw angular gradient using CaGradientLayer. I know angle can be defined using startPoint and endPoint. I …

ios objective-c gradient linear-gradients cagradientlayer
CAGradientLayer send to back

I have a UIViewController where I create a background gradient with CAGradientLayer *gradient = [CAGradientLayer layer]; ... gradient.frame = frame; self.backGradient = …

ios cocoa-touch core-animation cagradientlayer
Applying gradient background for UIView using auto layout

I extended UIView to add a addGradientWithColor() method to get the gradient background: extension UIView { func addGradientWithColor() { let gradient = CAGradientLayer() …

ios objective-c uiview swift3 cagradientlayer
UIButton with GradientLayer obscures image and darkens gradient

I have an UIButton here where I'd like to have a gradient as the background below the image (symbol with …

ios uibutton calayer cagradientlayer
iOS UIProgressView with gradient

is it possible to create a custom ui progress view with a gradient from left to right? I've tried it …

ios gradient progress uiprogressview cagradientlayer
Apply gradient on a UIView not working

I am trying to add gradient to a UIView programmatically but it is not working. It just appears to have …

ios swift uiview quartz-core cagradientlayer