CocoaPods trunk is moving to be read-only. Read more on the blog, there are 16 months to go.
TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Nov 2017 |
SwiftSwift Version | 4.0 |
SPMSupports SPM | ✗ |
Maintained by Kofktu.
Gradientable is available through CocoaPods. To install
it, simply add the following line to your Podfile:
pod 'Gradientable'
For iOS 8+ projects with Carthage
github "Kofktu/Gradientable"
public protocol Gradientable {
public func set(options: GradientableOptions)
public func set(animation: GradientableAnimation)
}
public struct GradientableOptions {
var colors: [UIColor]?
var locations: [NSNumber]?
var direction: GradientableOptionsDirection?
}
public struct GradientableAnimation {
var from: [UIColor]?
var to: [UIColor]
var duration: TimeInterval = 0.4
}
Taeun Kim (kofktu), [email protected]
Gradientable is available under the MIT
license. See the LICENSE
file for more info.