<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So20NSNotificationCenterC10FoundationE9PublisherV"
  },
  "title" : "NotificationCenter.Publisher"
}
-->

# NotificationCenter.Publisher

A publisher that emits elements when broadcasting notifications.

```
struct Publisher
```

## Topics

### Declaring Publisher Topography

[`NotificationCenter.Publisher.Output`](/documentation/Foundation/NotificationCenter/Publisher/Output)

The kind of values published by this publisher.

[`NotificationCenter.Publisher.Failure`](/documentation/Foundation/NotificationCenter/Publisher/Failure)

The kind of errors this publisher might publish.

### Creating a Notification Publisher

[`init(center:name:object:)`](/documentation/Foundation/NotificationCenter/Publisher/init(center:name:object:))

Creates a publisher that emits events when broadcasting notifications.

### Inspecting Notification Center Properties

[`center`](/documentation/Foundation/NotificationCenter/Publisher/center)

The notification center this publisher uses as a source.

[`name`](/documentation/Foundation/NotificationCenter/Publisher/name)

The name of notifications published by this publisher.

[`object`](/documentation/Foundation/NotificationCenter/Publisher/object)

The object posting the named notfication.



---

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)