<!--
{
  "availability" : [
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCStylus/styli",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "Game Controller",
      "GameController"
    ],
    "preciseIdentifier" : "c:objc(cs)GCStylus(cpy)styli"
  },
  "title" : "styli"
}
-->

# styli

Get the collection of stylus accessories currently connected to the device.

```
class var styli: [GCStylus] { get }
```

## Discussion

This property returns an array of all currently connected stylus accessories.
The array is empty when no stylus accessories are connected.  The array
updates automatically as stylus accessories connect and disconnect.

To be notified when the array changes, register for the
`GCStylusDidConnectNotification` and `GCStylusDidDisconnectNotification`.

---

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)