<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "LocalAuthentication",
  "identifier" : "/documentation/LocalAuthentication/LAContext/isCredentialSet(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Local Authentication"
    ],
    "preciseIdentifier" : "c:objc(cs)LAContext(im)isCredentialSet:"
  },
  "title" : "isCredentialSet(_:)"
}
-->

# isCredentialSet(_:)

Returns a Boolean value indicating whether the specified credential type is set.

```
func isCredentialSet(_ type: LACredentialType) -> Bool
```

## Parameters

`type`

The type of the credential. For possible values, see [`LACredentialType`](/documentation/LocalAuthentication/LACredentialType)

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the credential is set, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)