Blur view with adjustable blur radius in UIKit

634 Views Asked by At

What is the UIKit equivalent of SwiftUI's Blur view. I'm aware of the visual effect view in UIKit, however we cannot adjust the blur radius in that.

SwiftUI Blur view:

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

Is this possible in UIKit?

Found a good answer : http://stackoverflow.com/a/47475656/11515703

0

There are 0 best solutions below