title: Using predefined function with parameters as completion block in swift
body: <p>EDIT: I thought the issue was Swift syntax, but the problem was that I did not know that the UIViewController.presentViewController specifies a signature for the completion handler that takes no input parameters.</p>
  
  <p>I have to provide a completion handler to presentViewController. The completion handler I want to provide takes an input parameter. What is the syntax to handle this in swift?</p>
  
  <p>If the handler did not take an input parameter it would look like this:</p>
  
  <pre><code>self.presentViewController(activityVC, animated: true, completion: myHandler)
  </code></pre>
  
  <p>But how would the above line look if myHandler was declared like this:</p>
  
  <pre><code>func myHandler(myParameter: AnyObject){
      ...
  }
  </code></pre>