问题
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)
来源:https://stackoverflow.com/questions/64428968/blur-uitextviews-text