/*
case extraLight
case light
case dark
@available(iOS 10.0, *)
case regular
@available(iOS 10.0, *)
case prominent
*/
// 初始化一个基于模糊效果的视觉效果视图 let blur = UIBlurEffect(style: .dark) let blurView = UIVisualEffectView(effect: blur) blurView.frame = CGRect(x: 0, y: 0, width: JY_DEVICE_WIDTH, height: JY_DEVICE_HEIGHT) // blurView.layer.cornerRadius = 30 // blurView.layer.masksToBounds = true tempbgImageView.addSubview(blurView)
其他链接:https://www.jianshu.com/p/b868f737ff8c