---
title: isHittable
framework: xcuiautomation
role: symbol
role_heading: Instance Property
path: xcuiautomation/xcuielement/ishittable
---

# isHittable

Determines if the system can compute a hit point for the element.

## Declaration

```swift
var isHittable: Bool { get }
```

## Discussion

Discussion isHittable returns true if the element exists and can be clicked, tapped, or pressed at its current location. It returns false if the element doesn’t exist, is offscreen, or is covered by another element. note: isHittable only returns true if the element is already visible and hittable onscreen. It returns false for an offscreen element in a scrollable view, even if the element can be scrolled into a hittable position by calling click(), tap(), or another hit-point-related interaction method.

## See Also

### Querying element state

- [waitForExistence(timeout:)](xcuiautomation/xcuielement/waitforexistence(timeout:).md)
- [waitForNonExistence(timeout:)](xcuiautomation/xcuielement/waitfornonexistence(timeout:).md)
- [wait(for:toEqual:timeout:)](xcuiautomation/xcuielement/wait(for:toequal:timeout:).md)
- [exists](xcuiautomation/xcuielement/exists.md)
- [debugDescription](xcuiautomation/xcuielement/debugdescription.md)
