<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedSettings",
  "identifier" : "/documentation/ManagedSettings/ShieldAction",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Managed Settings"
    ],
    "preciseIdentifier" : "s:15ManagedSettings12ShieldActionO"
  },
  "title" : "ShieldAction"
}
-->

# ShieldAction

Constants that describe a user’s action for your extension to handle.

```
enum ShieldAction
```

## Topics

### Responding to primary button actions

[`ShieldAction.primaryButtonPressed`](/documentation/ManagedSettings/ShieldAction/primaryButtonPressed)

The user pressed the top button of the buttons on a shield.

### Responding to secondary button actions

[`ShieldAction.secondaryButtonPressed`](/documentation/ManagedSettings/ShieldAction/secondaryButtonPressed)

The user pressed the optional secondary button underneath the primary button of a shield.

[`ShieldAction.firstSecondarySubmenuItemPressed`](/documentation/ManagedSettings/ShieldAction/firstSecondarySubmenuItemPressed)

An action that occurs when someone selects the first item in the secondary button’s submenu.

[`ShieldAction.secondSecondarySubmenuItemPressed`](/documentation/ManagedSettings/ShieldAction/secondSecondarySubmenuItemPressed)

An action that occurs when someone selects the second item in the secondary button’s submenu.

[`ShieldAction.thirdSecondarySubmenuItemPressed`](/documentation/ManagedSettings/ShieldAction/thirdSecondarySubmenuItemPressed)

An action that occurs when someone selects the third item in the secondary button’s submenu.

## Relationships

### Conforms To

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

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

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

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

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

---

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)