---
title: "isInstance(_:)"
framework: appintentstesting
role: symbol
role_heading: Instance Method
path: "appintentstesting/appenumdefinition/isinstance(_:)"
---

# isInstance(_:)

Validates that the provided enumeration instance matches the definition’s type.

## Declaration

```swift
func isInstance(_ value: AnyAppEnum) throws
```

## Parameters

- `value`: The enum instance to validate.
