---
title: "conforms(to:)"
framework: gamecontroller
role: symbol
role_heading: Instance Method
path: "gamecontroller/gcspatialaccessory/conforms(to:)"
---

# conforms(to:)

Tests the conformance of the receiver to the provided device type.

## Declaration

```swift
func conforms(to type: GCDeviceType) -> Bool
```
