<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIAccessibility/guidedAccessRestrictionState(forIdentifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@F@UIGuidedAccessRestrictionStateForIdentifier"
  },
  "title" : "guidedAccessRestrictionState(forIdentifier:)"
}
-->

# guidedAccessRestrictionState(forIdentifier:)

Returns the restriction state for the specified guided access restriction.

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

## Parameters

`restrictionIdentifier`

The string that uniquely identifies the guided access restriction.

## Return Value

The current state of the guided access restriction. The initial state of all restrictions is [`UIAccessibility.GuidedAccessRestrictionState.allow`](/documentation/UIKit/UIAccessibility/GuidedAccessRestrictionState/allow).

## 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)