title: Translating ObjC-Blocks to Swift Closures
body: <p>I am trying to translate some objective-C Code into Swift. I added the Cocoapod "Masonry" for Autolayout to my project and added a Bridging-Header in order to able to use Objective-C Methods in Swift.</p>
  
  <p>This ObjC Method:</p>
  
  <pre><code>[_tableView mas_makeConstraints:^(MASConstraintMaker *make) {
      make.edges.equalTo(self.view);
  }];
  </code></pre>
  
  <p>should be something like the following Closure:</p>
  
  <pre><code>tableView.mas_makeConstraints({ (make : MASConstraintMaker!) -&gt; Void? in
      make.edges.equalTo(self.view)
  })
  </code></pre>
  
  <p>But I am getting an "Could not find member 'mas_makeConstraints'" which is not the error, as the method is indexed and autocomletion gives me the following:</p>
  
  <pre><code>tableView.mas_makeConstraints(block: ((MASConstraintMaker!) -&gt; Void)?)
  </code></pre>
  
  <p>?!</p>
  
  <p>Am I doing something wrong here?</p>