title: Swift closure using firebase blocks compile
body: <p>I'm following an online class (from December, 2016) and am getting the error in this screenshot.</p>
  
  <p><a href="https://i.stack.imgur.com/fRgnS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fRgnS.jpg" alt="error screenshot"></a></p>
  
  <p>Here's my code:
          //
      //  FirebaseManager.swift</p>
  
  <pre><code>import UIKit
  import Firebase
  import FirebaseDatabase
  import FirebaseAuth
  import FirebaseAnalytics
  
  class FirebaseManager: NSObject {
      static let databaseRef = FIRDatabase.database().reference()
      static var currentUserId:String = ""
      static var currentUser:FIRUser? = nil
  
      static func Login(email:String, password:String, completion: @escaping (_ success:Bool) -&gt;
          Void) {
          FIRAuth.auth()?.signIn(withEmail: email, password: password, completion: { (user,error)
              in
          if let error = error {
              print(error.localizedDescription)
              completion(false)
          } else {
              curentUser = user
              currentUserId = (user?.uid)!
              completion(true)}
          })
      }
  }
  </code></pre>
  
  <p>And here is the screenshot of the code from this example:<a href="https://i.stack.imgur.com/ZmCCB.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZmCCB.jpg" alt="code example from class"></a></p>
  
  <p>I've reviewed a few SO questions including this <a href="https://stackoverflow.com/questions/39063499/updating-closures-to-swift-3-escaping">one</a> but don't see an answer that applies to my situation. 
  Please see my attached<a href="https://i.stack.imgur.com/jlWAB.jpg" rel="nofollow noreferrer">my swift version settings</a> swift settings. <a href="https://i.stack.imgur.com/SFHss.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SFHss.jpg" alt="Xcode version"></a> Attaching again as I don't see it. <a href="https://i.stack.imgur.com/3JMqa.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3JMqa.jpg" alt="Swift Version settings"></a></p>
  
  <p>Thanks for your help</p>