title: Syntax of Block in Swift
body: <p>I am trying to rewrite from Objective-C to Swift, I cannot work out the syntax or understand the docs</p>
  
  <p>Here is a simplified example in Objective-C I wrote:</p>
  
  <pre><code>[UIView animateWithDuration:10.0 animations:^{self.navigationController.toolbar.frame = CGRectMake(0,10,0,10);}];
  </code></pre>
  
  <p>How do I write this in Swift? </p>
  
  <p>This is the template autocomplete gives:</p>
  
  <pre><code>UIView.animateWithDuration(duration: NSTimeInterval, animations: (() -&gt; Void))
  </code></pre>