---
title: "setButton(_:enabled:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfauthorizationpluginview/setbutton(_:enabled:)"
---

# setButton(_:enabled:)

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

## Declaration

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

## See Also

### Communicating with the Authorization Plug-in

- [display()](securityinterface/sfauthorizationpluginview/display().md)
- [update()](securityinterface/sfauthorizationpluginview/update().md)
