CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Apr 2017 |
Maintained by Cam Feenstra.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Example of animating curveConstant on a CFGradientView:
CFGradientLayer Properties (All Animatable):
gradientType- either AxialGradient or RadialGradient. Exactly what it sounds like
startColor- CGColorRef used at the beginning of the gradient. If radial, this is at the center of the layer, and if axial it is at the startPoint of the layer
endColor- CGColorRef, opposite of startColor
startPoint- CGPoint that is used as the relative start point for the gradient if the gradient type is axial. Values for x and y should be between 0 and 1.
endPoint- CGPoint, opposite of startPoint
radius- CGFloat used as the relative radius if the gradient type is radial. Value should be between 0 and 1.
curveConstant- CGFloat used to define the gradient curve. Value should be between 0 and 1.
iOS 8.0
CFGradient is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "CFGradient"
cfeenstra67, [email protected]
CFGradient is available under the MIT license. See the LICENSE file for more info.