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

# setButton(_:enabled:)

Enables or disables a button in the authorization plug-in’s user interface.

```
func setButton(_ inButtonType: SFButtonType, enabled inEnabled: Bool)
```

## Parameters

`inButtonType`

The type of the button.

`inEnabled`

<doc://com.apple.documentation/documentation/Swift/true> to enable the button, <doc://com.apple.documentation/documentation/Swift/false> to disable the button.

---

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)