Skip to content

CIFilterImage provides UI that can be easily filter images.Image filtering UI library.

License

Notifications You must be signed in to change notification settings

yokurin/CIFilterImage

Repository files navigation

CIFilterImage

Platform Cocoapods Carthage compatible License

Overview

CIFilterImage provides UI that can be easily filter images.
This is wrapper of CIFilter.

Demo

Here are some style of demos using CIFilterImage.

White Theme Black Theme

// model: Pintarest

Example

Open CIFilterImage.xcodeproj and run CIFilterImage-Example.

Usages

// Create CIFilterViewController
let vc = CIFilterViewController()
vc.image = UIImage(named: "sample")

// customize color
vc.backgroundColor = .white
vc.textColor = .black

// set delegate
vc.delegate = self
extension ViewController: CIFilterViewControllerDelegate {
    // Called when Done Button Tapped
    func didFinish(_ image: UIImage) {
        print("image", image)
    }
    
    // Called when Cancel Button Tapped
    func didCancel() {
        print("did Cancel")
    }
}

Requirements

  • iOS 11.4+
  • Xcode 10.2+
  • Swift 5.0+

Installation

CocoaPods

CIFilterImage is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'CIFilterImage'

Carthage

You can integrate via Carthage, too. Add the following line to your Cartfile :

github "yokurin/CIFilterImage"

and run carthage update

Author

Tsubasa Hayashi

License

CIFilterImage is available under the MIT license. See the LICENSE file for more info.

About

CIFilterImage provides UI that can be easily filter images.Image filtering UI library.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published