---
title: "setAutoupdate(_:)"
framework: securityinterface
role: symbol
role_heading: Instance Method
path: "securityinterface/sfauthorizationview/setautoupdate(_:)"
---

# setAutoupdate(_:)

Sets the authorization view to update itself automatically.

## Declaration

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

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(_:) 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

### Related Documentation

- [updateStatus(_:)](securityinterface/sfauthorizationview/updatestatus(_:).md)

### Setting up the authorization view

- [setString(_:)](securityinterface/sfauthorizationview/setstring(_:).md)
- [setAuthorizationRights(_:)](securityinterface/sfauthorizationview/setauthorizationrights(_:).md)
- [setAutoupdate(_:interval:)](securityinterface/sfauthorizationview/setautoupdate(_:interval:).md)
- [setFlags(_:)](securityinterface/sfauthorizationview/setflags(_:).md)
- [setEnabled(_:)](securityinterface/sfauthorizationview/setenabled(_:).md)
