UIImage
-
Creates and returns a new image object with a grayscale filter applied.
The code source for this implementation comes from this Stack Overflow’s answer.
Declaration
Swift
func withGrayscaleFilter() -> UIImage?
Return Value
A new image object with a grayscale filter applied.