title: Swift & deviceOwnerAuthentication : How to view passcode authentication board directly without going through Biometric Auth first?
body: <p>I am trying to authenticate the user using the device passcode. And I want to view the passcode board directly. But with the code below, I always have to go through the biometric authentication first and fail in order to authenticate with a passcode. How do I get the passcode board directly?</p>
  <pre><code>import UIKit
  import LocalAuthentication
  
  class ViewController: UIViewController {
  
      @IBOutlet weak var userButton: UIButton!
      
      @IBOutlet weak var resultLabel: UILabel!
      
      override func viewDidLoad() {
          super.viewDidLoad()
          // Do any additional setup after loading the view.
      }
  
      @IBAction func buttonPressed(_ sender: UIButton) {
          authenticateUser()
      }
      
      func authenticateUser() {
          let context = LAContext()
          
          context.evaluatePolicy(LAPolicy.deviceOwnerAuthentication, localizedReason: &quot;Please authenticate to proceed.&quot;) { (success, error) in
              DispatchQueue.main.async {
                  if success {
                      self.resultLabel.text = &quot;Success&quot;
                      print(&quot;Success&quot;)
                  }else{
                      self.resultLabel.text = &quot;Failed&quot;
                      print(&quot;Failed&quot;)
                      return
                  }
              }
              
              
              
              
          }
      }
      
  }
  </code></pre>
  <p>Thank you</p>