<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMessageComposeBarButton/init(image:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPMessageComposeBarButton(im)initWithImage:"
  },
  "title" : "init(image:)"
}
-->

# init(image:)

Creates a message compose button that displays a custom image.

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

## Parameters

`image`

The image to display on the button.

## Return Value

A message compose button with the custom image.

## Discussion

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

---

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)