79385260

Date: 2025-01-24 18:07:22
Score: 0.5
Natty:
Report link

I just inverted the color of the mask with the help of this function and it is working perfectly.

    func invertColors(of ciImage: CIImage) -> CIImage? {
    let invertFilter = CIFilter(name: "CIColorInvert")
    invertFilter?.setValue(ciImage, forKey: kCIInputImageKey)


    return invertFilter?.outputImage
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aarfeen Ahmad