Sharaku

图片 · solar · 分享于 4 个月前 · 182 次阅读 · 2 次下载
Licence: MIT
作者: makomori
分类: 图片
平台: iOS
设备: iPhone/iPad
大小: 1 M
更新: 4 个月前
关键字: 图片滤镜

sharaku_header

Sharaku

Version License Platform

Usage

How to present SHViewController

let imageToBeFiltered = UIImage(named: "targetImage")
let vc = SHViewController(image: imageToBeFiltered)
vc.delegate = self
self.present(vc, animated:true, completion: nil)

SHViewControllerDelegate methods

extension ViewController: SHViewControllerDelegate {
    func shViewControllerImageDidFilter(image: UIImage) {
      // Filtered image will be returned here.
    }

    func shViewControllerDidCancel() {
      // This will be called when you cancel filtering the image.
    }
}

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Demo video

Sharaku animation

Requirements

  • Swift3
  • iOS 8.3+

Installation

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

pod "Sharaku"

Install manually

It requires a few things. Please follow the steps.

Author

makomori, makomori26@gmail.com

License

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

共收到 0 条回复
回帖