[](https://travis-ci.org/Maheen Khalid/MKGradients)
import MKGradients
MKGradient.addGradientLayerAlongXAxis(self.view, colors: [UIColor.redColor().CGColor, UIColor.greenColor().CGColor])
MKGradient.addGradientLayerAlongYAxis(self.view, colors: [UIColor.redColor().CGColor, UIColor.greenColor().CGColor])MKGradients is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MKGradients"Maheen Khalid, [email protected]
MKGradients is available under the MIT license. See the LICENSE file for more info.