<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSNotification/Name-swift.struct/GCKeyboardDidDisconnect",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@GCKeyboardDidDisconnectNotification"
  },
  "title" : "GCKeyboardDidDisconnect"
}
-->

# GCKeyboardDidDisconnect

A notification that posts after a single keyboard, or the last of multiple keyboards, disconnects from the device.

```
static let GCKeyboardDidDisconnect: NSNotification.Name
```

## Discussion

The notification object is a <doc://com.apple.documentation/documentation/GameController/GCKeyboard> object that represents one or more keyboards. If the user connects multiple keyboards, the framework posts this notification only after the last keyboard disconnects from the device.

The system posts this notification on the main actor.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)