---
title: summaryText
framework: messages
role: symbol
role_heading: Instance Property
path: messages/msmessage/summarytext
---

# summaryText

A succinct description of the message.

## Declaration

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

## Discussion

Discussion This property defaults to nil. Set the summary text when you create a message that is associated with a session. When a subsequent message is sent using the same session, the Messages app uses this text to create a summary in the transcript. If the summary text is nil, the system provides a default description for the message so that the message history is preserved.

## See Also

### Message Properties

- [accessibilityLabel](messages/msmessage/accessibilitylabel.md)
- [error](messages/msmessage/error.md)
- [isPending](messages/msmessage/ispending.md)
- [layout](messages/msmessage/layout.md)
- [senderParticipantIdentifier](messages/msmessage/senderparticipantidentifier.md)
- [session](messages/msmessage/session.md)
- [shouldExpire](messages/msmessage/shouldexpire.md)
- [url](messages/msmessage/url.md)
