SPImageFilter
使用图像过滤器的最简单方法
如何使用
默认
let image: UIImage = UIImage(name: "example")?.spFilter(type: .ciBoxBlur, options: [
"inputRadius" : 10
]).output
过滤链
let image: UIImage = UIImage(name: "example")?
.spFilter(type: .ciSepiaTone, options: [
"inputIntensity" : 0.9
])
.spFilter(type: .ciBloom, options: [
"inputRadius" : 10,
"inputIntensity" : 2
]).output
安装
CocoaPods
pod 'SPImageFilter'