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

# setEnabled(_:)

Sets the current state of the authorization view.

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

## Parameters

`enabled`

Specifies whether the authorization view should be enabled (<doc://com.apple.documentation/documentation/Swift/true>) or disabled (<doc://com.apple.documentation/documentation/Swift/false>).

## Discussion

A disabled view is visible but dimmed.

## See Also

[`func authorizationState() -> SFAuthorizationViewState`](/documentation/SecurityInterface/SFAuthorizationView/authorizationState())

Returns the current state of the authorization 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)