Swift开源-Sharaku:类似 Instagram 图片滤镜库及示例

Swift   2017-01-11 10:22:04 发布
您的评价:
     
0.0
收藏     0收藏
文件夹
标签
(多个标签用逗号分隔)

Sharaku

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

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

Author

makomori, makomori26@gmail.com

License

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

 

 

扩展阅读

iOS开发者必备:自己总结的iOS、mac开源项目及库
iOS、mac开源项目及库汇总
iOS及Mac开源项目和学习资料【超级全面】
Swift 开源项目精选
Github上的iOS资料-个人记录

为您推荐

机器学习框架、库和软件集合:awesome-machine-learning
机器学习开源项目、类库、软件集合
机器学习框架,类库和软件汇总
HTML编辑器的CKeditor配置使用方法
PHP开发资源大全

更多

Swift
Apple Swift开发
相关文档  — 更多
相关经验  — 更多
相关讨论  — 更多