Skip to content

Instantly share code, notes, and snippets.

@froggomad
Last active May 30, 2020 16:57
Show Gist options
  • Save froggomad/6a2d3bcc1c26b432523f0687f37afd9c to your computer and use it in GitHub Desktop.
Save froggomad/6a2d3bcc1c26b432523f0687f37afd9c to your computer and use it in GitHub Desktop.
All CIFilters in an enum, updated 5/30/20 (Swift 5)
extension CIFilter {
enum FilterName: String {
case CIAccordionFoldTransition = "CIAccordionFoldTransition"
case CIAdditionCompositing = "CIAdditionCompositing"
case CIAffineClamp = "CIAffineClamp"
case CIAffineTile = "CIAffineTile"
case CIAffineTransform = "CIAffineTransform"
case CIAreaAverage = "CIAreaAverage"
case CIAreaHistogram = "CIAreaHistogram"
case CIAreaMaximum = "CIAreaMaximum"
case CIAreaMaximumAlpha = "CIAreaMaximumAlpha"
case CIAreaMinimum = "CIAreaMinimum"
case CIAreaMinimumAlpha = "CIAreaMinimumAlpha"
case CIAreaMinMax = "CIAreaMinMax"
case CIAreaMinMaxRed = "CIAreaMinMaxRed"
case CIAttributedTextImageGenerator = "CIAttributedTextImageGenerator"
case CIAztecCodeGenerator = "CIAztecCodeGenerator"
case CIBarcodeGenerator = "CIBarcodeGenerator"
case CIBarsSwipeTransition = "CIBarsSwipeTransition"
case CIBicubicScaleTransform = "CIBicubicScaleTransform"
case CIBlendWithAlphaMask = "CIBlendWithAlphaMask"
case CIBlendWithBlueMask = "CIBlendWithBlueMask"
case CIBlendWithMask = "CIBlendWithMask"
case CIBlendWithRedMask = "CIBlendWithRedMask"
case CIBloom = "CIBloom"
case CIBokehBlur = "CIBokehBlur"
case CIBoxBlur = "CIBoxBlur"
case CIBumpDistortion = "CIBumpDistortion"
case CIBumpDistortionLinear = "CIBumpDistortionLinear"
case CICameraCalibrationLensCorrection = "CICameraCalibrationLensCorrection"
case CICheckerboardGenerator = "CICheckerboardGenerator"
case CICircleSplashDistortion = "CICircleSplashDistortion"
case CICircularScreen = "CICircularScreen"
case CICircularWrap = "CICircularWrap"
case CIClamp = "CIClamp"
case CICMYKHalftone = "CICMYKHalftone"
case CICode128BarcodeGenerator = "CICode128BarcodeGenerator"
case CIColorBlendMode = "CIColorBlendMode"
case CIColorBurnBlendMode = "CIColorBurnBlendMode"
case CIColorClamp = "CIColorClamp"
case CIColorControls = "CIColorControls"
case CIColorCrossPolynomial = "CIColorCrossPolynomial"
case CIColorCube = "CIColorCube"
case CIColorCubesMixedWithMask = "CIColorCubesMixedWithMask"
case CIColorCubeWithColorSpace = "CIColorCubeWithColorSpace"
case CIColorCurves = "CIColorCurves"
case CIColorDodgeBlendMode = "CIColorDodgeBlendMode"
case CIColorInvert = "CIColorInvert"
case CIColorMap = "CIColorMap"
case CIColorMatrix = "CIColorMatrix"
case CIColorMonochrome = "CIColorMonochrome"
case CIColorPolynomial = "CIColorPolynomial"
case CIColorPosterize = "CIColorPosterize"
case CIColumnAverage = "CIColumnAverage"
case CIComicEffect = "CIComicEffect"
case CIConstantColorGenerator = "CIConstantColorGenerator"
case CIConvolution3X3 = "CIConvolution3X3"
case CIConvolution5X5 = "CIConvolution5X5"
case CIConvolution7X7 = "CIConvolution7X7"
case CIConvolution9Horizontal = "CIConvolution9Horizontal"
case CIConvolution9Vertical = "CIConvolution9Vertical"
case CICopyMachineTransition = "CICopyMachineTransition"
case CICoreMLModelFilter = "CICoreMLModelFilter"
case CICrop = "CICrop"
case CICrystallize = "CICrystallize"
case CIDarkenBlendMode = "CIDarkenBlendMode"
case CIDepthBlurEffect = "CIDepthBlurEffect"
case CIDepthOfField = "CIDepthOfField"
case CIDepthToDisparity = "CIDepthToDisparity"
case CIDifferenceBlendMode = "CIDifferenceBlendMode"
case CIDiscBlur = "CIDiscBlur"
case CIDisintegrateWithMaskTransition = "CIDisintegrateWithMaskTransition"
case CIDisparityToDepth = "CIDisparityToDepth"
case CIDisplacementDistortion = "CIDisplacementDistortion"
case CIDissolveTransition = "CIDissolveTransition"
case CIDither = "CIDither"
case CIDivideBlendMode = "CIDivideBlendMode"
case CIDocumentEnhancer = "CIDocumentEnhancer"
case CIDotScreen = "CIDotScreen"
case CIDroste = "CIDroste"
case CIEdgePreserveUpsampleFilter = "CIEdgePreserveUpsampleFilter"
case CIEdges = "CIEdges"
case CIEdgeWork = "CIEdgeWork"
case CIEightfoldReflectedTile = "CIEightfoldReflectedTile"
case CIExclusionBlendMode = "CIExclusionBlendMode"
case CIExposureAdjust = "CIExposureAdjust"
case CIFalseColor = "CIFalseColor"
case CIFlashTransition = "CIFlashTransition"
case CIFourfoldReflectedTile = "CIFourfoldReflectedTile"
case CIFourfoldRotatedTile = "CIFourfoldRotatedTile"
case CIFourfoldTranslatedTile = "CIFourfoldTranslatedTile"
case CIGaborGradients = "CIGaborGradients"
case CIGammaAdjust = "CIGammaAdjust"
case CIGaussianBlur = "CIGaussianBlur"
case CIGaussianGradient = "CIGaussianGradient"
case CIGlassDistortion = "CIGlassDistortion"
case CIGlassLozenge = "CIGlassLozenge"
case CIGlideReflectedTile = "CIGlideReflectedTile"
case CIGloom = "CIGloom"
case CIGuidedFilter = "CIGuidedFilter"
case CIHardLightBlendMode = "CIHardLightBlendMode"
case CIHatchedScreen = "CIHatchedScreen"
case CIHeightFieldFromMask = "CIHeightFieldFromMask"
case CIHexagonalPixellate = "CIHexagonalPixellate"
case CIHighlightShadowAdjust = "CIHighlightShadowAdjust"
case CIHistogramDisplayFilter = "CIHistogramDisplayFilter"
case CIHoleDistortion = "CIHoleDistortion"
case CIHueAdjust = "CIHueAdjust"
case CIHueBlendMode = "CIHueBlendMode"
case CIHueSaturationValueGradient = "CIHueSaturationValueGradient"
case CIKaleidoscope = "CIKaleidoscope"
case CIKeystoneCorrectionCombined = "CIKeystoneCorrectionCombined"
case CIKeystoneCorrectionHorizontal = "CIKeystoneCorrectionHorizontal"
case CIKeystoneCorrectionVertical = "CIKeystoneCorrectionVertical"
case CIKMeans = "CIKMeans"
case CILabDeltaE = "CILabDeltaE"
case CILanczosScaleTransform = "CILanczosScaleTransform"
case CILenticularHaloGenerator = "CILenticularHaloGenerator"
case CILightenBlendMode = "CILightenBlendMode"
case CILightTunnel = "CILightTunnel"
case CILinearBurnBlendMode = "CILinearBurnBlendMode"
case CILinearDodgeBlendMode = "CILinearDodgeBlendMode"
case CILinearGradient = "CILinearGradient"
case CILinearToSRGBToneCurve = "CILinearToSRGBToneCurve"
case CILineOverlay = "CILineOverlay"
case CILineScreen = "CILineScreen"
case CILuminosityBlendMode = "CILuminosityBlendMode"
case CIMaskedVariableBlur = "CIMaskedVariableBlur"
case CIMaskToAlpha = "CIMaskToAlpha"
case CIMaximumComponent = "CIMaximumComponent"
case CIMaximumCompositing = "CIMaximumCompositing"
case CIMedianFilter = "CIMedianFilter"
case CIMeshGenerator = "CIMeshGenerator"
case CIMinimumComponent = "CIMinimumComponent"
case CIMinimumCompositing = "CIMinimumCompositing"
case CIMix = "CIMix"
case CIModTransition = "CIModTransition"
case CIMorphologyGradient = "CIMorphologyGradient"
case CIMorphologyMaximum = "CIMorphologyMaximum"
case CIMorphologyMinimum = "CIMorphologyMinimum"
case CIMorphologyRectangleMaximum = "CIMorphologyRectangleMaximum"
case CIMorphologyRectangleMinimum = "CIMorphologyRectangleMinimum"
case CIMotionBlur = "CIMotionBlur"
case CIMultiplyBlendMode = "CIMultiplyBlendMode"
case CIMultiplyCompositing = "CIMultiplyCompositing"
case CINinePartStretched = "CINinePartStretched"
case CINinePartTiled = "CINinePartTiled"
case CINoiseReduction = "CINoiseReduction"
case CIOpTile = "CIOpTile"
case CIOverlayBlendMode = "CIOverlayBlendMode"
case CIPageCurlTransition = "CIPageCurlTransition"
case CIPageCurlWithShadowTransition = "CIPageCurlWithShadowTransition"
case CIPaletteCentroid = "CIPaletteCentroid"
case CIPalettize = "CIPalettize"
case CIParallelogramTile = "CIParallelogramTile"
case CIPDF417BarcodeGenerator = "CIPDF417BarcodeGenerator"
case CIPerspectiveCorrection = "CIPerspectiveCorrection"
case CIPerspectiveRotate = "CIPerspectiveRotate"
case CIPerspectiveTile = "CIPerspectiveTile"
case CIPerspectiveTransform = "CIPerspectiveTransform"
case CIPerspectiveTransformWithExtent = "CIPerspectiveTransformWithExtent"
case CIPhotoEffectChrome = "CIPhotoEffectChrome"
case CIPhotoEffectFade = "CIPhotoEffectFade"
case CIPhotoEffectInstant = "CIPhotoEffectInstant"
case CIPhotoEffectMono = "CIPhotoEffectMono"
case CIPhotoEffectNoir = "CIPhotoEffectNoir"
case CIPhotoEffectProcess = "CIPhotoEffectProcess"
case CIPhotoEffectTonal = "CIPhotoEffectTonal"
case CIPhotoEffectTransfer = "CIPhotoEffectTransfer"
case CIPinchDistortion = "CIPinchDistortion"
case CIPinLightBlendMode = "CIPinLightBlendMode"
case CIPixellate = "CIPixellate"
case CIPointillize = "CIPointillize"
case CIQRCodeGenerator = "CIQRCodeGenerator"
case CIRadialGradient = "CIRadialGradient"
case CIRandomGenerator = "CIRandomGenerator"
case CIRippleTransition = "CIRippleTransition"
case CIRoundedRectangleGenerator = "CIRoundedRectangleGenerator"
case CIRowAverage = "CIRowAverage"
case CISaliencyMapFilter = "CISaliencyMapFilter"
case CISampleNearest = "CISampleNearest"
case CISaturationBlendMode = "CISaturationBlendMode"
case CIScreenBlendMode = "CIScreenBlendMode"
case CISepiaTone = "CISepiaTone"
case CIShadedMaterial = "CIShadedMaterial"
case CISharpenLuminance = "CISharpenLuminance"
case CISixfoldReflectedTile = "CISixfoldReflectedTile"
case CISixfoldRotatedTile = "CISixfoldRotatedTile"
case CISmoothLinearGradient = "CISmoothLinearGradient"
case CISoftLightBlendMode = "CISoftLightBlendMode"
case CISourceAtopCompositing = "CISourceAtopCompositing"
case CISourceInCompositing = "CISourceInCompositing"
case CISourceOutCompositing = "CISourceOutCompositing"
case CISourceOverCompositing = "CISourceOverCompositing"
case CISpotColor = "CISpotColor"
case CISpotLight = "CISpotLight"
case CISRGBToneCurveToLinear = "CISRGBToneCurveToLinear"
case CIStarShineGenerator = "CIStarShineGenerator"
case CIStraightenFilter = "CIStraightenFilter"
case CIStretchCrop = "CIStretchCrop"
case CIStripesGenerator = "CIStripesGenerator"
case CISubtractBlendMode = "CISubtractBlendMode"
case CISunbeamsGenerator = "CISunbeamsGenerator"
case CISwipeTransition = "CISwipeTransition"
case CITemperatureAndTint = "CITemperatureAndTint"
case CITextImageGenerator = "CITextImageGenerator"
case CIThermal = "CIThermal"
case CIToneCurve = "CIToneCurve"
case CITorusLensDistortion = "CITorusLensDistortion"
case CITriangleKaleidoscope = "CITriangleKaleidoscope"
case CITriangleTile = "CITriangleTile"
case CITwelvefoldReflectedTile = "CITwelvefoldReflectedTile"
case CITwirlDistortion = "CITwirlDistortion"
case CIUnsharpMask = "CIUnsharpMask"
case CIVibrance = "CIVibrance"
case CIVignette = "CIVignette"
case CIVignetteEffect = "CIVignetteEffect"
case CIVortexDistortion = "CIVortexDistortion"
case CIWhitePointAdjust = "CIWhitePointAdjust"
case CIXRay = "CIXRay"
case CIZoomBlur = "CIZoomBlur"
}
static func getFilter(with name: FilterName) -> CIFilter {
CIFilter(name: name.rawValue)!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment