---
title: "setEnabled(_:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfauthorizationpluginview/setenabled(_:)"
---

# setEnabled(_:)

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

## Declaration

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

## Parameters

- `inEnabled`: The state the controls should be in.

## Discussion

Discussion When the authorization plug-in calls this method, the subclass should call setEnabled(_:) on the controls that are in its view.
