Dynamically Coloured UIButtons (and other views) with UIGraphicsImageRenderer Darren Gillman29/10/201929/10/2019Extend 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.