I'm trying to insert tableview inside custom alertView. And I need to achieve the same style as default alert. From Debug View Hierarchy I almost copied the style but I can not figure out how Apple set blur effect. My custom alert View hierarchy here
I was trying to programmatically insert blur view but result too dark, too white or on the same transparency
let blur = UIVisualEffectView(effect: UIBlurEffect(style: .all of them))
blur.frame = self.alertView.frame
blur.isUserInteractionEnabled = false
self.view.insertSubview(blur, at: 1)
Try this code -
Hope this helps!