---
title: styli
framework: gamecontroller
role: symbol
role_heading: Type Property
path: gamecontroller/gcstylus/styli
---

# styli

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

## Declaration

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

## Mentioned in

Discovering and tracking spatial game controllers and styli

## Discussion

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.
