---
title: "makeMessage(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/notificationcenter/asyncmessage/makemessage(_:)"
---

# makeMessage(_:)

Converts a posted notification into this asynchronous message type for any observers.

## Declaration

```swift
static func makeMessage(_ notification: Notification) -> Self?
```

## Parameters

- `notification`: The posted doc://com.apple.foundation/documentation/Foundation/Notification.

## Return Value

Return Value The converted AsyncMessage, or nil if conversion is not possible.

## Discussion

Discussion To implement this method in your own AsyncMessage conformance, retrieve values from the Notification’s userInfo and set them as properties on the message.

## See Also

### Converting between messages and notifications

- [makeNotification(_:)](foundation/notificationcenter/asyncmessage/makenotification(_:).md)
