CGImage Masking stopped working on iOS 12
问题 I've got a method for masking a B&W image by cutting out (i.e. making transparent) any pixels that are above or below a certain brightness. The result would be the same B&W image, but with everything above 70% or below 25% brightness (or whatever you choose) changed to transparent. It was working perfectly on iOS 11, but it broke on iOS 12. It now returns the original, solid image with no modifications every time. -(UIImage*)imageWithLumaMaskFromDark:(CGFloat)lumaFloor toLight:(CGFloat