Dynamically Coloured UIButtons (and other views) with UIGraphicsImageRenderer
Extend UIColor to enable the easy generation of single colour images, and then use these to create buttons with background colours that change according to state.
Extend UIColor to enable the easy generation of single colour images, and then use these to create buttons with background colours that change according to state.