<!--
{
  "availability" : [
    "macOS: 10.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFAuthorizationPluginView/setEnabled(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:objc(cs)SFAuthorizationPluginView(im)setEnabled:"
  },
  "title" : "setEnabled(_:)"
}
-->

# setEnabled(_:)

Enables or disables the controls in the authorization plug-in’s view.

```
func setEnabled(_ inEnabled: Bool)
```

## Parameters

`inEnabled`

The state the controls should be in.

## Discussion

When the authorization plug-in calls this method, the subclass should call [`setEnabled(_:)`](/documentation/SecurityInterface/SFAuthorizationPluginView/setEnabled(_:)) on the controls that are in its view.

---

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)