---
title: "makeMessage(_:)"
framework: messageui
role: symbol
role_heading: Type Method
path: "messageui/mfmessagecomposeviewcontroller/textmessageavailabilitydidchangemessage/makemessage(_:)"
---

# makeMessage(_:)

Transform a legacy Notification into a type-safe Message

## Declaration

```swift
static func makeMessage(_ notification: Notification) -> MFMessageComposeViewController.TextMessageAvailabilityDidChangeMessage?
```

## Parameters

- `notification`: The notification to parse

## Return Value

Return Value A Message if the notification contains valid data, nil otherwise
