Here's a function that takes in RGB color values as arguments and returns a UIColor
object with those colors inverted:
main.swift277 chars7 lines
You can call this function with the RGB values of the color you want to invert, like this:
main.swift160 chars6 lines
This will give you a UIColor
object with the inverted colors.
gistlibby LogSnag