A message that posts after a game controller stops being the most
recently used controller.
Use the `.didStopBeingCurrent` identifier with `NotificationCenter` to listen
for this message.
```
let observation = NotificationCenter.default.addObserver(of: GCController.self, for: .didStopBeingCurrent) { message in
let controller = message.controller
}
```
Converts a posted notification into this main actor message type for any observers.
To implement this method in your own `MainActorMessage` 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 `MainActorMessage` or `nil` if conversion is not possible.
get · iOS 26.0+
controller
TypeScript
get controller(): GCController
Swift declaration
var controller: GCController
The controller object that was previously the current controller.
set · iOS 26.0+
controller
TypeScript
set controller(value: GCController)
Swift declaration
var controller: GCController
The controller object that was previously the current controller.