A message a bundle sends when it dynamically loads a class.
When a bundle handles a request to load a class with ``Bundle/classNamed(_:)`` or ``Bundle/principalClass``, the bundle dynamically loads the executable code file that contains the class implementation and all other class definitions contained in the file.
After module loading completes, the bundle posts this message.
Observe this message with the identifier ``NotificationCenter/MessageIdentifier/didLoad``, or specify its type directly to the `addObserver(of:for:using:)` method.
The ``NotificationCenter/MainActorMessage/Subject`` of this message type is ``Bundle``.
This message interoperates with the notification ``Bundle/didLoadNotification``.
The system notifies observers of the message when the ``NotificationCenter`` posts the notification.
Similarly, the system notifies observers of the notification when it posts the message.
Converts a posted notification into this asynchronous message type for any observers.
To implement this method in your own `AsyncMessage` conformance, retrieve values from the ``Notification``'s ``Notification/userInfo`` and set them as properties on the message.
- Parameter notification: The posted ``Notification``.
- Returns: The converted `AsyncMessage`, or `nil` if conversion is not possible.
get · iOS 26.0+
name
TypeScript
static get nameValue(): NSNotification_Name
Swift declaration
static var name: Notification.Name { get }
A optional name corresponding to this type, used to interoperate with notification posters and observers.
init · iOS 26.0+
init
TypeScript
static init(): Bundle_DidLoadMessage
Swift declaration
init()
Creates a message that indicates a bundle dynamically loaded a class.