项目介绍:
GradientMaster
A IBDesignable UIView class with a gradient rendered and customizable in the storyboard (effect, direction,…) and support gradient animation.
Usage
IBDesignable
-
Set the class to GradientMasterView.
-
Customizable direction and effect you like.
-
Run it.
Animation
Set animation duration.
gradientView.animationDuration = 5.0
Start animation.
gradientView.startAnimation()
Stop animation.
gradientView.stopAnimation()
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
GradientMaster is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'GradientMaster'
Author
catchzeng, 891793848@qq.com
License
GradientMaster is available under the MIT license. See the LICENSE file for more info.