---
title: "init(image:)"
framework: carplay
role: symbol
role_heading: Initializer
path: "carplay/cpmessagecomposebarbutton/init(image:)"
---

# init(image:)

Creates a message compose button that displays a custom image.

## Declaration

```swift
init(image: UIImage)
```

## Parameters

- `image`: The image to display on the button.

## Return Value

Return Value A message compose button with the custom image.

## Discussion

Discussion note: This button type does not use a handler. Instead, tapping this button activates Siri and initiates the compose message flow.

## See Also

### Creating a Message Compose Bar Button

- [init()](carplay/cpmessagecomposebarbutton/init().md)
