I am setting a background image to view controller. But also i want to add blur effect to this background. How can I do this?
I am setting background with following
This worked for me on Swift 5
let blurredView = UIVisualEffectView(effect: UIBlurEffect(style: .light)) blurredView.frame = self.view.bounds backgroundimage.addSubview(blurredView)