post(name:object:userInfo:)
Creates a notification with a given name, sender, and information and posts it to the notification center.
Declaration
func post(name aName: NSNotification.Name, object anObject: Any?, userInfo aUserInfo: [AnyHashable : Any]? = nil)Parameters
- aName:
The name of the notification.
- anObject:
The object posting the notification.
- aUserInfo:
A user info dictionary with optional information about the notification.