<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPTextButtonStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:@E@CPTextButtonStyle"
  },
  "title" : "CPTextButtonStyle"
}
-->

# CPTextButtonStyle

The styles a button can apply to its title to communicate its action.

```
enum CPTextButtonStyle
```

## Topics

### Button Text Styles

[`case normal`](/documentation/CarPlay/CPTextButtonStyle/normal)

A style that indicates the button performs an action other than to confirm or cancel.

[`case confirm`](/documentation/CarPlay/CPTextButtonStyle/confirm)

A style that indicates the button confirms an action and changes data.

[`case cancel`](/documentation/CarPlay/CPTextButtonStyle/cancel)

A style that indicates the button cancels an action and doesn’t change data.

### Initializers

[`init?(rawValue: Int)`](/documentation/CarPlay/CPTextButtonStyle/init(rawValue:))

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)