<!--
{
  "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/UIGuidedAccessRestrictionDelegate/guidedAccessRestriction(withIdentifier:didChange:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIGuidedAccessRestrictionDelegate(im)guidedAccessRestrictionWithIdentifier:didChangeState:"
  },
  "title" : "guidedAccessRestriction(withIdentifier:didChange:)"
}
-->

# guidedAccessRestriction(withIdentifier:didChange:)

Tells the delegate that the restriction associated with the identifier has changed state.

```
func guidedAccessRestriction(withIdentifier restrictionIdentifier: String, didChange newRestrictionState: UIAccessibility.GuidedAccessRestrictionState)
```

## Parameters

`restrictionIdentifier`

The identifier of the restriction whose state has changed.

`newRestrictionState`

The new state for the restriction.

## Discussion

Your app should adjust its behavior to allow or deny the operation controlled by the specified restriction each time it receives this message.

---

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)