<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPAlertAction/Style-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:@E@CPAlertActionStyle"
  },
  "title" : "CPAlertAction.Style"
}
-->

# CPAlertAction.Style

Display styles for an alert’s action button.

```
enum Style
```

## Topics

### Styles

[`CPAlertActionStyleDefault`](/documentation/CarPlay/CPAlertAction/Style-swift.enum/default)

The default display style for an action button.

[`CPAlertActionStyleCancel`](/documentation/CarPlay/CPAlertAction/Style-swift.enum/cancel)

The display style indicating that the action leaves data unchanged.

[`CPAlertActionStyleDestructive`](/documentation/CarPlay/CPAlertAction/Style-swift.enum/destructive)

The style indicating that the action changes or deletes data.

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)