I know that UIVisualEffectView
ist very uncustomizable, so I can't setup the radius of blurness of the view or even the color.
Now I realized I could not even mask one.
I want to realize a Tabbar with blured Background, but to the top corner it gets sharper till 100%. Because I know I couldn't adjust the blur radius I had the idea to work with a gradient mask to archieve something like this:
But as sad at the beginning I could not even mask a simple Rectangle:
let gradientMask = CAGradientLayer()
gradientMask.frame = effectView.frame
gradientMask.colors = [UIColor.black.cgColor, UIColor.clear.cgColor]
effectView.layer.mask = gradientMask
The result is, the UIVisualEffectView
doesn't show at all anymore.
Have you guy a workaround or something else?
EDIT: The view in the screenshot is for example, in the final app the background is a dynamic list with tiles where I can scroll through. So the workaround with snapshots will not work in my case.