SDWebImage for Swift,模糊效果可以吗?

SDWebImage for Swift, Blur effect is it possible?

我在我的项目中为 Swift 使用 SDWebImage,我正在尝试按照发现的高级用法示例向图像添加模糊效果 here

更具体地说,我正在尝试声明一个 SDImageBlurTransformer,但是当我开始输入时,该选项没有出现。

是否可以使用 SDWebImage 包实现图像模糊效果?

确保您的 Podfile 引用项目的 5.0 版和 运行 pod update。我在使用 SDWebImage 5.0 版的新项目上正确完成了代码。

这是我的Podfile供参考:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'BlurImage' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  pod 'SDWebImage', '~> 5.0'

end