---
title: "isCredentialSet(_:)"
framework: localauthentication
role: symbol
role_heading: Instance Method
path: "localauthentication/lacontext/iscredentialset(_:)"
---

# isCredentialSet(_:)

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

## Declaration

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

## Parameters

- `type`: The type of the credential. For possible values, see doc://com.apple.localauthentication/documentation/LocalAuthentication/LACredentialType

## Return Value

Return Value true if the credential is set, otherwise false.

## See Also

### Managing credentials

- [setCredential(_:type:)](localauthentication/lacontext/setcredential(_:type:).md)
- [LACredentialType](localauthentication/lacredentialtype.md)
