title: How to extract colours from UIImage using Swift
body: <p>I recently started to create an iOS version of my Android app and I've found myself struggling to find a method of extracting dominant colours from an image.</p>
  
  <p>Over in Android there's a palette library provided by Google that allows you to do just that. (<a href="https://developer.android.com/reference/android/support/v7/graphics/Palette.html" rel="nofollow">https://developer.android.com/reference/android/support/v7/graphics/Palette.html</a>)</p>
  
  <p>I'm can't seem to find any libraries that will allow me to that in iOS however.</p>