How to extract colors from UIImage using Swift
I recently started building an iOS version of my Android app and I found myself struggling to find a way to extract dominant colors from an image.
Android has a palette library provided by Google that allows you to do this. ( https://developer.android.com/reference/android/support/v7/graphics/Palette.html )
I cannot find libraries that will allow me to do this on iOS.
+3
source to share
1 answer
My friend seems to be using this library: https://github.com/pixelogik/ColorCube
Take the tour, it seems like they are doing what you expect.
+4
source to share