<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPActionSheetTemplate",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPActionSheetTemplate"
  },
  "title" : "CPActionSheetTemplate"
}
-->

# CPActionSheetTemplate

A template that displays a modal action sheet.

```
@MainActor class CPActionSheetTemplate
```

## Overview

You must present action sheets modally by calling the [`presentTemplate(_:animated:completion:)`](/documentation/CarPlay/CPInterfaceController/presentTemplate(_:animated:completion:)) method available on your app’s instance of [`CPInterfaceController`](/documentation/CarPlay/CPInterfaceController). The user dismisses the action sheet by pressing a button, or you can dismiss it by calling the interface controller’s [`dismissTemplate(animated:completion:)`](/documentation/CarPlay/CPInterfaceController/dismissTemplate(animated:completion:)) method.

## Topics

### Creating an Action Sheet Template

[`-  initWithTitle:message:actions:`](/documentation/CarPlay/CPActionSheetTemplate/init(title:message:actions:))

Creates an action sheet template.

### Getting Action Sheet Template Information

[`title`](/documentation/CarPlay/CPActionSheetTemplate/title)

The title of the action sheet.

[`message`](/documentation/CarPlay/CPActionSheetTemplate/message)

The descriptive message providing details about the reason for displaying the action sheet.

[`actions`](/documentation/CarPlay/CPActionSheetTemplate/actions)

The list of actions available on the action sheet.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

[`NSCoding`](/documentation/Foundation/NSCoding)

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

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

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

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

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

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

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

### Inherits From

[`CPTemplate`](/documentation/CarPlay/CPTemplate)

---

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)