项目作者: yokurin

项目描述 :
CIFilterImage provides UI that can be easily filter images.Image filtering UI library.
高级语言: Swift
项目地址: git://github.com/yokurin/CIFilterImage.git
创建时间: 2019-03-29T10:03:26Z
项目社区:https://github.com/yokurin/CIFilterImage

开源协议:MIT License

下载


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

  1. // Create CIFilterViewController
  2. let vc = CIFilterViewController()
  3. vc.image = UIImage(named: "sample")
  4. // customize color
  5. vc.backgroundColor = .white
  6. vc.textColor = .black
  7. // set delegate
  8. vc.delegate = self
  1. extension ViewController: CIFilterViewControllerDelegate {
  2. // Called when Done Button Tapped
  3. func didFinish(_ image: UIImage) {
  4. print("image", image)
  5. }
  6. // Called when Cancel Button Tapped
  7. func didCancel() {
  8. print("did Cancel")
  9. }
  10. }

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:

  1. pod 'CIFilterImage'

Carthage

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

  1. 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.