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
Sometimes you want to throw this in a variable to animate in different ways depending on the situation. For that you need
let completionBlock : (Bool) -> () = { _ in
}
Or you could use the equally verbose:
let completionBlock = { (_:Bool) in
}
But in any case, you have have to indicate the Bool somewhere.