У меня есть представление визуальных эффектов на раскадровке, подключенное к моему ViewController в качестве выхода. Эффект скрывает за собой ImageView и отлично работает. Я пытаюсь изменить UIBlurEffectStyle со светлого на темный внутри нажатия кнопки IBAction. Любая помощь здесь будет высоко оценена!
@IBOutlet weak var blurView: UIVisualEffectView!
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func changeBlurView() {
// This is wrong, but is my best attempt so far.
self.blurView(UIBlurEffectStyle.Dark)
}