---
title: isSelected
framework: appintentstesting
role: symbol
role_heading: Instance Property
path: appintentstesting/viewannotation/isselected
---

# isSelected

A Boolean value that indicates whether the entity’s associated view is selected.

## Declaration

```swift
let isSelected: Bool
```

## Mentioned in

Testing your App Intents code

## See Also

### Accessing onscreen context

- [entity](appintentstesting/viewannotation/entity.md)
