The object associated with the notification.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
var object: Any? { get }
Discussion
This is often the object that posted this notification.
Typically you use this method to find out what object a notification applies to when you receive a notification.