UIKit 中具有可调模糊半径的模糊视图

问题描述

SwiftUI 的 Blur 视图的 UIKit 等价物是什么。我知道 UIKit 中的视觉效果视图,但是我们无法调整其中的模糊半径。

SwiftUI 模糊视图:

struct Blur: View {
    var body: some View {
        vstack {
            Text("This is some text.")
                .padding()
            Text("This is some blurry text.")
                .blur(radius: 2.0)
        }
    }
}

这在 UIKit 中可行吗?

找到了一个很好的答案:http://stackoverflow.com/a/47475656/11515703

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)