GCStylus.DidConnectMessage
A message that posts after a stylus 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: GCStylus.self, for: .didCnnect) { message in
let stylus = message.stylus
}Connections of stylus accessories will be reflected in the styli array of the GCStylus class when the message posts.