---
title: "guidedAccessRestrictionState(forIdentifier:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uiaccessibility/guidedaccessrestrictionstate(foridentifier:)"
---

# guidedAccessRestrictionState(forIdentifier:)

Returns the restriction state for the specified guided access restriction.

## Declaration

```swift
@MainActor static func guidedAccessRestrictionState(forIdentifier restrictionIdentifier: String) -> UIAccessibility.GuidedAccessRestrictionState
```

## Parameters

- `restrictionIdentifier`: The string that uniquely identifies the guided access restriction.

## Return Value

Return Value The current state of the guided access restriction. The initial state of all restrictions is UIAccessibility.GuidedAccessRestrictionState.allow.

## See Also

### Guided Access

- [UIGuidedAccessRestrictionDelegate](uikit/uiguidedaccessrestrictiondelegate.md)
