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

# trailingCaption

A right-aligned caption for the message bubble.

## Declaration

```swift
var trailingCaption: String? { get set }
```

## Discussion

Discussion The trailing caption is drawn using black text and is positioned at the bottom-right corner of the message bubble, just below the image or media file. This text is right aligned and positioned on the same line as the caption. The trailing caption can wrap to three lines before being truncated. This property defaults to nil.

## See Also

### Assigning Visual Elements

- [image](messages/msmessagetemplatelayout/image.md)
- [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)
- [trailingSubcaption](messages/msmessagetemplatelayout/trailingsubcaption.md)
