import Colorify
...
self.view.backgroundColor = Colorify.Kale
...
self.view.addGradient(from: Colorify.Lime, to: Colorify.LightGreen, direction: .topLeftBottomRight)
...
Gradient support: left - right, top - bottom, topLeft - bottomRight, right - left, bottom - top
Examples:
top - bottom, topLeft - bottomRight
Colorify is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod ‘Colorify’, '~> 1.2’
Damian Paśko,
[email protected],
https://github.com/czater
Colorify is available under the MIT license. See the LICENSE file for more info.