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

# setAutoupdate(_:)

Sets the authorization view to update itself automatically.

```
func setAutoupdate(_ autoupdate: Bool)
```

## Parameters

`autoupdate`

Specifies whether the authorization view should update itself automatically. Set to <doc://com.apple.documentation/documentation/Swift/true> to enable autoupdates.

## Discussion

If autoupdates are enabled and the authorization times out (for example), the authorization view automatically relocks. If autoupdates are disabled, you have to call the [`updateStatus(_:)`](/documentation/SecurityInterface/SFAuthorizationView/updateStatus(_:)) method to manually update the view if the status changes when the user has not clicked on the lock icon. Autoupdates are disabled by default. Because autoupdates poll, they can affect system performance.

## See Also

[`func updateStatus(Any!) -> Bool`](/documentation/SecurityInterface/SFAuthorizationView/updateStatus(_:))

Manually updates 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)