Initializer

init(coder:)

Initializes a notification with the data from an unarchiver.

Declaration

init?(coder: NSCoder)

See Also

Creating Notifications

init(name: NSNotification.Name, object: Any?)

Returns a new notification object with a specified name and object.

init(name: NSNotification.Name, object: Any?, userInfo: [AnyHashable : Any]?)

Initializes a notification with a specified name, object, and user information.

struct NSNotification.Name

The type used for the name of a notification.