I am adding a UIVisualEffectView for a blur over on my view. the backgound of my view is a ca gradient layer and when I add the blur, it just goes gray.
This is the fade view:
let fadeView = UIVisualEffectView(effect: UIBlurEffect(style: UIBlurEffect.Style.light))
This code is run when button is pressed:
fadeView.frame = view.frame
fadeView.center = view.center
fadeView.alpha = 0.0
fadeView.layer.zPosition = 1
fadeView.isOpaque = true
view.addSubview(fadeView)
UIView.animate(withDuration: 0.3, animations: {self.fadeView.alpha = 1.0})
Any Help Making it blur over all the colours of the view instead of just this weird grey?