<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NotificationCenter/Notifications",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:So20NSNotificationCenterC10FoundationE13NotificationsC"
  },
  "title" : "NotificationCenter.Notifications"
}
-->

# NotificationCenter.Notifications

An asynchronous sequence of notifications generated by a notification center.

```
final class Notifications
```

## Overview

Use the [`notifications(named:object:)`](/documentation/Foundation/NotificationCenter/notifications(named:object:)) method to create an instance of this type, then iterate over its elements with the `for`-`await`-`in` syntax.

> Tip:
> The ``doc://com.apple.foundation/documentation/Foundation/Notification`` type doesn’t conform to <doc://com.apple.documentation/documentation/Swift/Sendable>, so iterating over this asynchronous sequence produces a compiler warning. You can use a <doc://com.apple.documentation/documentation/Swift/AsyncSequence/map(_:)-1q1k3> or <doc://com.apple.documentation/documentation/Swift/AsyncSequence/compactMap(_:)-gfdq> operator on the sequence to extract sendable properties of the notification and iterate over those instead. See ``doc://com.apple.foundation/documentation/Foundation/NotificationCenter/notifications(named:object:)`` for an example of this approach.

## Topics

### Finding Elements

### Selecting Elements

### Excluding Elements

### Transforming a Sequence

### Creating an Iterator

[`func makeAsyncIterator() -> NotificationCenter.Notifications.Iterator`](/documentation/Foundation/NotificationCenter/Notifications/makeAsyncIterator())

Creates the asynchronous iterator that produces elements of this asynchronous sequence.

[`struct Iterator`](/documentation/Foundation/NotificationCenter/Notifications/Iterator)

The asynchronous iterator created by this asynchronous sequence.

### Supporting Types

[`typealias Element`](/documentation/Foundation/NotificationCenter/Notifications/Element)

The type of element produced by this asynchronous sequence.

## Relationships

### Conforms To

[`AsyncSequence`](/documentation/Swift/AsyncSequence)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)