---
title: name
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsnotification/name-swift.property
---

# name

The name of the notification.

## Declaration

```swift
var name: NSNotification.Name { get }
```

## Discussion

Discussion Typically you use this property to find out what kind of notification you are dealing with when you receive a notification. Special Considerations Notification names can be any string. To avoid name collisions, you might want to use a prefix that’s specific to your application.

## See Also

### Getting Notification Information

- [object](foundation/nsnotification/object.md)
- [userInfo](foundation/nsnotification/userinfo.md)
