Blur UITextView's text

462 Views Asked by At

I'm using VisualEffectView GitHub library to blur the text of UItextView but I want to blur text, not the whole view. As you see in the image when applying an effect, we are able to see the edges of the view. Can anyone help me out with how to achieve this by using the VisualEffectView library or any other techniques? Any help would be appreciated.

Code:

var visualEffectViewDescription = VisualEffectView()


visualEffectViewDescription.frame = self.descriptionOfWorkout.bounds
visualEffectViewDescription.blurRadius = 3
self.descriptionOfWorkout.addSubview(visualEffectViewDescription)
    

enter image description here

0

There are 0 best solutions below