I\'m having trouble making the blocks work on Swift. Here\'s an example that worked (without completion block):
UIView.animateWithDuration(0.07) { self.so
The completion is correct, the closure must accept a Bool parameter: (Bool) -> (). Try
Bool
(Bool) -> ()
UIView.animate(withDuration: 0.2, animations: { self.blurBg.alpha = 1 }, completion: { finished in self.blurBg.hidden = true })