---
title: "guidedAccessRestriction(withIdentifier:didChange:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiguidedaccessrestrictiondelegate/guidedaccessrestriction(withidentifier:didchange:)"
---

# guidedAccessRestriction(withIdentifier:didChange:)

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

## Declaration

```swift
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

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

## See Also

### Implementing restrictions

- [UIAccessibility.GuidedAccessRestrictionState](uikit/uiaccessibility/guidedaccessrestrictionstate.md)
