UIView.animate(withDuration: 1) { [weak self] in self?.visualEffectView.effect = UIBlurEffect(style: .light) } visualEffectView.layer.speed = 0