TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | Custom |
ReleasedLast Release | Mar 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Shaun Harrison.
Swift/iOS port of Android’s Palette https://developer.android.com/reference/android/support/v7/graphics/Palette.html
Palette.generateWith(configuration: PaletteConfiguration(image: image)) {
if let color = $0.darkMutedSwatch?.color {
self.backgroundColor = color
}
if let color = $0.lightVibrantSwatch?.color {
self.textLabel.textColor = color
}
}
Apache License 2.0 (inherited from the Andorid project) – see the LICENSE file for more information.