     /// Tint filter which will apply a tint color to images.
     public static var tint: (Color) -> Filter = {
         color in
-        Filter { input in
+        Filter(transform: { input in
             let colorFilter = CIFilter(name: "CIConstantColorGenerator")!
             colorFilter.setValue(CIColor(color: color), forKey: kCIInputColorKey)
             

    /// Color control filter which will apply color control change to images.
    public static var colorControl: (ColorElement) -> Filter = { arg -> Filter in
        let (brightness, contrast, saturation, inputEV) = arg
        return Filter { input in
            let paramsColor = [kCIInputBrightnessKey: brightness,
                               kCIInputContrastKey: contrast,
                               kCIInputSaturationKey: saturation]

            let blackAndWhite = input.applyingFilter("CIColorControls", withInputParameters: paramsColor)
            return blackAndWhite.applyingFilter("CIExposureAdjust", withInputParameters: paramsExposure)
            #endif
        })
    }
}

// MARK: - Deprecated
extension Filter {
    @available(*, deprecated, message: "Use init(transform:) instead.", renamed: "init(transform:)")
    public init(tranform: @escaping Transformer) {
        self.transform = tranform
    }
}

