GCSpatialAccessory.DidConnectMessage
A message that posts after a spatial accessory connects to the device.
Declaration
struct DidConnectMessageOverview
Use the .didConnect identifier with NotificationCenter to listen for this message.
let observation = NotificationCenter.default.addObserver(of: GCSpatialAccessory.self, for: .didConnect) { message in
let accessory = message.spatialAccessory
}Connections of spatial accessories will be reflected in the spatialAccessories array of the GCSpatialAccessory class when the message posts.