GCController.DidBecomeCurrentMessage
A message that posts after a game controller becomes the most recently used controller.
Declaration
struct DidBecomeCurrentMessageOverview
This is a good time to swap out UI to match the new current controller, and unregister any handlers with the old current controller.
Use the .didBecomeCurrent identifier with NotificationCenter to listen for this message.
let observation = NotificationCenter.default.addObserver(of: GCController.self, for: .didBecomeCurrent) { message in
let controller = message.controller
}