I need to modify any image to get these results:
- White color has to be the color I specify, I don't want to keep source image's lightness.
- Rest of colors have to be tinted similar to Photoshop's "Color" layer blend mode. That is, I need them to look like if the source image was grey-scaled and then a color filter applied, even for non-greyscale images.
I am using the UIImage + Colorize.swift functions. The tint(tintColor: UIColor) -> UIImage
function works as I need for non-white colors, but white color remains white. How could I get the results I need?