<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSMessageTemplateLayout/image",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "c:objc(cs)MSMessageTemplateLayout(py)image"
  },
  "title" : "image"
}
-->

# image

An image used to represent the message in the transcript.

```
var image: UIImage? { get set }
```

## Discussion

The system crops the left and right edges of the image by 6 points, and rounds the image’s corners.

The template can have either an image or a media file. If this property is set to a non-`nil` value, the [`mediaFileURL`](/documentation/Messages/MSMessageTemplateLayout/mediaFileURL) property is ignored. This property defaults to `nil`.

---

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)