ima

ImagePalette

Swift/iOS port of Android's Palette https://developer.android.com/reference/android/support/v7/graphics/Palette.html

Showing:

Popularity

Downloads/wk

0

GitHub Stars

51

Maintenance

Last Commit

4yrs ago

Contributors

3

Package

Dependencies

1

License

Apache License 2.0

Categories

Readme

ImagePalette

Swift/iOS port of Android’s Palette https://developer.android.com/reference/android/support/v7/graphics/Palette.html

Basic Usage

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
}
}

License

Apache License 2.0 (inherited from the Andorid project) – see the LICENSE file for more information.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100