I created some pageController which is working but with one problem. I have background image and I've added blurry view to it. But it doesn't stretch with the image:

The way I created the blurry view is this:
let blurEffect = UIBlurEffect(style: .dark)
let blurEffectView = UIVisualEffectView(effect: blurEffect)
blurEffectView.frame = self.view.frame
self.view.insertSubview(blurEffectView, at: 1)
I have tried to make image to aspect fill, aspect fit etc.. Nothing works.
You have to constrain the blur effect view to the image view, just as you would with any kind of view.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With