<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Notification",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation12NotificationV"
  },
  "title" : "Notification"
}
-->

# Notification

A container for information broadcast through a notification center to all registered observers.

```
struct Notification
```

## Topics

### Creating a Notification

[`init(name:object:userInfo:)`](/documentation/Foundation/Notification/init(name:object:userInfo:))

Initializes a new notification.

[`Notification.Name`](/documentation/Foundation/Notification/Name-swift.typealias)

An alias for a type used to represent the name of a notification.

[`NSNotification.Name`](/documentation/Foundation/NSNotification/Name-swift.struct)

A structure that defines the name of a notification.

### Getting Notification Information

[`name`](/documentation/Foundation/Notification/name-swift.property)

A tag identifying the notification.

[`object`](/documentation/Foundation/Notification/object)

An object that the poster wishes to send to observers.

[`userInfo`](/documentation/Foundation/Notification/userInfo)

Storage for values or objects related to this notification.

### Using Reference Types

[`NSNotification`](/documentation/Foundation/NSNotification)

A container for information broadcast through a notification center to all registered observers.



---

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)