title: iOS - Cannot call value of non-function type 'NSProgress'
body: <p>I'm trying to download a file using Alamofire, with progress. But I get this error at the <code>progress</code> line. </p>
  
  <p><code>Cannot call value of non-function type 'NSProgress'</code></p>
  
  <p>What's the problem? All the examples I've seen, namely <a href="https://github.com/Alamofire/Alamofire#downloading-a-file-wprogress" rel="nofollow noreferrer">the official one</a>, do the exact same thing!</p>
  
  <pre><code>Alamofire.download(.GET, nsurl!.absoluteString,     destination: { (temporaryURL, response) in
      return filepath
  })
      .progress { (bytesRead, totalBytesRead, totalBytesExpectedToRead) in // &lt;------ ERROR HERE
          dispatch_async(dispatch_get_main_queue(), {
              self.progressBar?.progress = totalBytesRead / totalBytesExpectedToRead
          })
      }
      .response { (request, response, _, error) in
          self.loadImageFromFile(filepath.absoluteString)
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/fEaxX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fEaxX.png" alt="enter image description here"></a></p>
  
  <h1>EDIT:</h1>
  
  <p>After @mvoelkl's suggestion, I added parenthesis to the progress function. But the result stayed the same:
  <a href="https://i.stack.imgur.com/awuLK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/awuLK.png" alt="enter image description here"></a></p>