---
title: image
framework: messages
role: symbol
role_heading: Instance Property
path: messages/msmessagetemplatelayout/image
---

# image

An image used to represent the message in the transcript.

## Declaration

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

## Discussion

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 property is ignored. This property defaults to nil.

## See Also

### Assigning Visual Elements

- [mediaFileURL](messages/msmessagetemplatelayout/mediafileurl.md)
- [imageTitle](messages/msmessagetemplatelayout/imagetitle.md)
- [imageSubtitle](messages/msmessagetemplatelayout/imagesubtitle.md)
- [caption](messages/msmessagetemplatelayout/caption.md)
- [subcaption](messages/msmessagetemplatelayout/subcaption.md)
- [trailingCaption](messages/msmessagetemplatelayout/trailingcaption.md)
- [trailingSubcaption](messages/msmessagetemplatelayout/trailingsubcaption.md)
