title: swift firebase phone auth error "verifyPhoneNumber:completion is deprecated
body: <p>error "verifyPhoneNumber:completion is deprecated</p>
  
  <pre><code>    PhoneAuthProvider.provider().verifyPhoneNumber(PhoneNum.text!) { (verificationID, error) in
          if let error = error {
              print(error.localizedDescription)
  
          }
          // Sign in using the verificationID and the code sent to the user
          else {
              UserDefaults.standard.set(verificationID, forKey: "authVerificationID")
              self.performSegue(withIdentifier: "segue", sender: self)
          }
      }
  </code></pre>
  
  <p>update image
  <a href="https://i.stack.imgur.com/8O2Ai.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8O2Ai.png" alt="enter image description here"></a></p>