Blur UITextView's text

自古美人都是妖i 提交于 2020-11-29 19:22:03

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!