---
title: GCRacingWheel.DidConnectMessage
framework: gamecontroller
role: symbol
role_heading: Structure
path: gamecontroller/gcracingwheel/didconnectmessage
---

# GCRacingWheel.DidConnectMessage

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

## Declaration

```swift
struct DidConnectMessage
```

## Overview

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:)](gamecontroller/gcracingwheel/didconnectmessage/init(racingwheel:).md)

### Instance Properties

- [racingWheel](gamecontroller/gcracingwheel/didconnectmessage/racingwheel.md)

## Relationships

### Conforms To

- [NotificationCenter.MainActorMessage](foundation/notificationcenter/mainactormessage.md)
- [SendableMetatype](swift/sendablemetatype.md)
