<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AuthenticationServices",
  "identifier" : "/documentation/AuthenticationServices/ASCredentialIdentityStore/getState(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Authentication Services"
    ],
    "preciseIdentifier" : "c:objc(cs)ASCredentialIdentityStore(im)getCredentialIdentityStoreStateWithCompletion:"
  },
  "title" : "getState(_:)"
}
-->

# getState(_:)

Gets the state of the credential identity store.

```
func getState(_ completion: @escaping @Sendable (ASCredentialIdentityStoreState) -> Void)
```

## Parameters

`completion`

A block the method calls to return the current identity store state.

## Discussion

Call this method to find out the current state of the store before attempting to call other store methods. Examine the [`ASCredentialIdentityStoreState`](/documentation/AuthenticationServices/ASCredentialIdentityStoreState) value passed to your completion handler to find out whether the store is enabled and whether it supports incremental updates.

---

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)