<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NotificationCenter/Publisher/init(center:name:object:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So20NSNotificationCenterC10FoundationE9PublisherV6center4name6objectAeB_So0A4NameayXlSgtcfc"
  },
  "title" : "init(center:name:object:)"
}
-->

# init(center:name:object:)

Creates a publisher that emits events when broadcasting notifications.

```
init(center: NotificationCenter, name: Notification.Name, object: AnyObject? = nil)
```

## Parameters

`center`

The notification center to publish notifications for.

`name`

The name of the notification to publish.

`object`

The object posting the named notfication. If `nil`, the publisher emits elements for any object producing a notification with the given name.

---

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)