Swift Core Image Filter – CIImage and CIFilter
How to use Core Image Filter – CIImage and CIFIlter within Swift 2, Xcode 7, iOS 9 application.
This example shows how to use CIImage and CIFilter (i.e. Core Image Filter) within iOS 9 application (Swift 2). It includes functionality like Select image from Gallery, or Capture from device Camera, Apply filter to selected image, Save filtered image to Phone Gallery. Please note, this example does not cover all Core Image filter but shows basic usage of photo effect filters i.e. how to apply photo effect to image using filter. You can use this code as a base and expand it’s functionality. It is free for personal or commercial use.
It consist functionality below:
– Select image from Gallery.
– or Capture from device Camera.
– Apply various filter to image.
– e.g. CIPhotoEffectChrome, CIPhotoEffectMono etc.
– Save filtered image to Photo Gallery.