This is my code block to invert colors of an image:
import Foundation import UIKit import CoreImage extension UIImage { static let defaultImage = UI