---
title: NotificationCenter.Notifications
framework: foundation
role: symbol
role_heading: Class
path: foundation/notificationcenter/notifications
---

# NotificationCenter.Notifications

An asynchronous sequence of notifications generated by a notification center.

## Declaration

```swift
final class Notifications
```

## Overview

Overview Use the notifications(named:object:) method to create an instance of this type, then iterate over its elements with the for-await-in syntax. tip: The Notification type doesn’t conform to Sendable, so iterating over this asynchronous sequence produces a compiler warning. You can use a map(_:) or compactMap(_:) operator on the sequence to extract sendable properties of the notification and iterate over those instead. See notifications(named:object:) for an example of this approach.

## Topics

### Creating an Iterator

- [makeAsyncIterator()](foundation/notificationcenter/notifications/makeasynciterator().md)
- [NotificationCenter.Notifications.Iterator](foundation/notificationcenter/notifications/iterator.md)

### Supporting Types

- [NotificationCenter.Notifications.Element](foundation/notificationcenter/notifications/element.md)

## Relationships

### Conforms To

- [AsyncSequence](swift/asyncsequence.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Receiving notifications as an asynchronous sequence

- [notifications(named:object:)](foundation/notificationcenter/notifications(named:object:).md)
