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

# setFlags(_:)

Sets the current authorization flags for the view.

## Declaration

```swift
func setFlags(_ flags: AuthorizationFlags)
```

## Parameters

- `flags`: The authorization flags to set for this view.

## Discussion

Discussion You can use this method to change the authorization flag settings made with the setAuthorizationRights(_:) method or to specify flags other than the default (kAuthorizationFlagDefaults) used by the setString(_:) method. The authorization flags are described in Authorization Options in Authorization Services.

## See Also

### Setting up the authorization view

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