CFGradient 1.0.1

CFGradient 1.0.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2017

Maintained by Cam Feenstra.



  • By
  • cfeenstra67

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Example of animating curveConstant on a CFGradientView:

image

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.

Requirements

iOS 8.0

Installation

CFGradient is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CFGradient"

Author

cfeenstra67, [email protected]

License

CFGradient is available under the MIT license. See the LICENSE file for more info.