- Horizontal, vertical & diagonal gradients
- Animate gradients by changing colors
- iOS 10.0 or later
- Swift 5
KWGradientView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "KWGradientView"
@IBOutlet weak var gradientView: KWGradientView!
gradientView.addGradientLayerAlongXAxis(colors: [UIColor.red, UIColor.green, UIColor.blue])
Also we can add any number of colors by adding them to the array of colors.
All the methods in the pod are implemented in GradientsViewController.swift
for your reference.
KeepWorks, ios@keepworks.com
KWGradientView is owned and maintained by KeepWorks.
Bug reports and pull requests are welcome on GitHub at https://github.com/keepworks/KWGradientView.
KWGradientView is available under the MIT License. See the License file for more info.