https://github.com/makomori/Sharaku
SharakuUsageHow to present SHViewControllerlet imageToBeFiltered = UIImage(named: 'targetImage') let vc = SHViewController(image: imageToBeFiltered) vc.delegate = self self.present(vc, animated:true, completion: nil)SHViewControllerDelegate methodsextension 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要将实例程序跑起来,可以下载源代码,开题报告,然后命令行中在项目目录下执行 “pod install”
To run the example project, clone the repo, and run pod install from the Example directory first.
Demo videoRequirementsSwift3
iOS 8.3 ~
InstallationSharaku is available through CocoaPods. To install
it, simply add the following line to your Podfile:
makomori, makomori26@gmail.com
LicenseSharaku is available under the MIT license. See the LICENSE file for more info.
,论文