title: Swift: Missing Argument for Parameter
body: <p>1) I'm using a variable as the first argument in <code>UIView.animateWithDuration</code> like so:</p>
  
  <pre><code>var theDelay: Float = 1.0
      UIView.animateWithDuration( theDelay, animations: {
      cell.frame.origin.y = 0
  })
  </code></pre>
  
  <p>and Xcode6 (Beta 3) is giving me a build error: 'Missing argument for parameter 'delay' in call'.</p>
  
  <p>When I don't use a variable, the function works just fine. I'd like to tweak the variable (as this code is within a loop) when I discovered this issue. </p>
  
  <p>2) Alternatively, I could skip using a variable and include the calculation in-line:</p>
  
  <pre><code>UIView.animateWithDuration( indexPath.row * 1.0, animations: {
      cell.frame.origin.y = 0
  })
  </code></pre>
  
  <p>but I am getting the same error 'Missing argument for parameter 'delay' in call'.</p>
  
  <p>What am I doing wrong here? </p>