---
title: doubleTap()
framework: xcuiautomation
role: symbol
role_heading: Instance Method
path: xcuiautomation/xcuielement/doubletap()
---

# doubleTap()

Sends a double-tap event to a hittable point the system computes for the element.

## Declaration

```swift
func doubleTap()
```

## Discussion

Discussion If the element exists within a scrollable view but is offscreen, the framework attempts to scroll the element onscreen before performing the double tap.

## See Also

### Tapping and pressing

- [tap()](xcuiautomation/xcuielement/tap().md)
- [press(forDuration:)](xcuiautomation/xcuielement/press(forduration:).md)
- [press(forDuration:thenDragTo:)](xcuiautomation/xcuielement/press(forduration:thendragto:).md)
- [press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)](xcuiautomation/xcuielement/press(forduration:thendragto:withvelocity:thenholdforduration:).md)
