<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NotificationCenter/MainActorMessage/makeNotification(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So20NSNotificationCenterC10FoundationE16MainActorMessageP16makeNotificationyAC0H0VxFZ"
  },
  "title" : "makeNotification(_:)"
}
-->

# makeNotification(_:)

Converts a posted main actor message into a notification for any observers.

```
@MainActor static func makeNotification(_ message: Self) -> Notification
```

## Parameters

`message`

The posted `MainActorMessage`.

## Return Value

The converted [`Notification`](/documentation/Foundation/Notification).

## Discussion

To implement this method in your own `MainActorMessage` conformance, use the properties defined by the message to populate the [`Notification`](/documentation/Foundation/Notification)’s [`userInfo`](/documentation/Foundation/Notification/userInfo).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)