---
title: subject
framework: messageui
role: symbol
role_heading: Instance Property
path: messageui/mfmessagecomposeviewcontroller/subject
---

# subject

The initial subject of the message.

## Declaration

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

## Discussion

Discussion If you want to provide an initial subject for a message, do so before you display it. After the message is displayed you cannot change the value of this property.

## See Also

### Setting the initial message information

- [recipients](messageui/mfmessagecomposeviewcontroller/recipients.md)
- [body](messageui/mfmessagecomposeviewcontroller/body.md)
- [message](messageui/mfmessagecomposeviewcontroller/message.md)
