Skip to the ‘Juicy Code 🧃’ section if you just want the code and don’t care about the preamble of why you might want this! Finding the average color of an image is a nice trick to have in your toolbelt for spicing up views. For instance on iOS, it’s used by Apple to make their pretty homescreen widgets where you put the average color of the image behind the text so the text is more readable. Here’s Apple’s News widget, and my Apollo widget, for instance: Core Image Approach Pit...