title: Can't check Face ID when user denied to use
body: <p>I want to take different actions to users if device support <strong>Face ID</strong> or <strong>Touch ID</strong>.</p>
  
  <p>When using the <strong>Face ID</strong>, iOS asking permission to use. (unlike Touch ID). </p>
  
  <p>And if the user denies permission, context.biometryType return LABiometryTypeNone.</p>
  
  <p>Is there anyway to check <strong>Touch ID</strong> or <strong>Face ID</strong> supported by <strong>device</strong>.</p>
  
  <pre><code>LAContext *context = [[LAContext alloc] init];
  
  NSError *error;
  
  if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&amp;error]) {
  
  }
  
  if (@available(iOS 11.0, *)) {
      if (context.biometryType == LABiometryTypeFaceID) {
          // support FaceID 
      }
  }
  
  // support TouchID
  </code></pre>
  
  <p><strong>Console output</strong></p>
  
  <pre><code>(lldb) po error
  Error Domain=com.apple.LocalAuthentication Code=-6 "User has denied the use of biometry for this app." UserInfo={NSLocalizedDescription=User has denied the use of biometry for this app.}
  
  (lldb) po context.biometryType
  LABiometryTypeNone
  </code></pre>
  
  <blockquote>
    <p>NOTE: I Don't want to use passcode authentication. I just need to know
    <strong>device is support Touch ID or Face ID</strong></p>
  </blockquote>