<!--
{
  "availability" : [
    "macOS: 10.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SecurityInterface",
  "identifier" : "/documentation/SecurityInterface/SFButtonType",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Security Interface"
    ],
    "preciseIdentifier" : "c:@EA@SFButtonType"
  },
  "title" : "SFButtonType"
}
-->

# SFButtonType

These constants define the button types used by authorization plug-ins.

```
struct SFButtonType
```

## Topics

### Initializers

[`init(UInt32)`](/documentation/SecurityInterface/SFButtonType/init(_:))

[`init(rawValue: UInt32)`](/documentation/SecurityInterface/SFButtonType/init(rawValue:))

### Instance Properties

[`var rawValue: UInt32`](/documentation/SecurityInterface/SFButtonType/rawValue)

### Constants

[`var SFButtonTypeCancel: SFButtonType`](/documentation/SecurityInterface/SFButtonTypeCancel)

Indicates the Cancel button was pressed.

[`var SFButtonTypeOK: SFButtonType`](/documentation/SecurityInterface/SFButtonTypeOK)

Indicates the OK button was pressed.

[`var SFButtonTypeBack: SFButtonType`](/documentation/SecurityInterface/SFButtonTypeBack)

Indicates the Back button was pressed.

[`var SFButtonTypeLogin: SFButtonType`](/documentation/SecurityInterface/SFButtonTypeLogin)

Indicates the Login button was pressed.

## Relationships

### Conforms To

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)