---
title: CPActionSheetTemplate
framework: carplay
role: symbol
role_heading: Class
path: carplay/cpactionsheettemplate
---

# CPActionSheetTemplate

A template that displays a modal action sheet.

## Declaration

```swift
@MainActor class CPActionSheetTemplate
```

## Overview

Overview You must present action sheets modally by calling the presentTemplate(_:animated:completion:) method available on your app’s instance of 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:) method.

## Topics

### Creating an Action Sheet Template

- [init(title:message:actions:)](carplay/cpactionsheettemplate/init(title:message:actions:).md)

### Getting Action Sheet Template Information

- [title](carplay/cpactionsheettemplate/title.md)
- [message](carplay/cpactionsheettemplate/message.md)
- [actions](carplay/cpactionsheettemplate/actions.md)

## Relationships

### Inherits From

- [CPTemplate](carplay/cptemplate.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Actions and Alerts

- [CPAlertTemplate](carplay/cpalerttemplate.md)
- [CPAlertAction](carplay/cpalertaction.md)
