---
title: "init(notificationCenter:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/notificationqueue/init(notificationcenter:)"
---

# init(notificationCenter:)

Initializes and returns a notification queue for the specified notification center.

## Declaration

```swift
init(notificationCenter: NotificationCenter)
```

## Parameters

- `notificationCenter`: The notification center to be used by the notification queue.

## Return Value

Return Value The newly initialized notification queue.

## Discussion

Discussion This is the designated initializer for the NotificationQueue class.

## See Also

### Related Documentation

- [Notification Programming Topics](apple-archive/documentation/Cocoa/Conceptual/Notifications/Introduction/introNotifications.html.md)
