<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCRacingWheel/DidConnectMessage",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Game Controller",
      "GameController"
    ],
    "preciseIdentifier" : "s:So13GCRacingWheelC14GameControllerE17DidConnectMessageV"
  },
  "title" : "GCRacingWheel.DidConnectMessage"
}
-->

# GCRacingWheel.DidConnectMessage

A message that posts after a racing wheel accessory connects to the
device.

```
struct DidConnectMessage
```

## Overview

Use the `.didConnect` identifier with `NotificationCenter` to listen
for this message.

```
let observation = NotificationCenter.default.addObserver(of: GCRacingWheel.self, for: .didConnect) { message in
   let racingWheel = message.racingWheel
}
```

Connections of controller accessories will be reflected in the
`controllers` array of the `GCController` class when the message posts.

## Topics

### Initializers

[`init(racingWheel: GCRacingWheel)`](/documentation/GameController/GCRacingWheel/DidConnectMessage/init(racingWheel:))

### Instance Properties

[`var racingWheel: GCRacingWheel`](/documentation/GameController/GCRacingWheel/DidConnectMessage/racingWheel)

The racing wheel object that connected to the device.

## Relationships

### Conforms To

[`MainActorMessage`](/documentation/Foundation/NotificationCenter/MainActorMessage)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)