---
title: tap()
framework: xcuiautomation
role: symbol
role_heading: Instance Method
path: xcuiautomation/xcuicoordinate/tap()
---

# tap()

Sends a tap event at the coordinate.

## Declaration

```swift
func tap()
```

## Discussion

Discussion This method is available in iOS and for Touch Bar interactions in macOS.

## See Also

### Tapping and pressing

- [doubleTap()](xcuiautomation/xcuicoordinate/doubletap().md)
- [press(forDuration:)](xcuiautomation/xcuicoordinate/press(forduration:).md)
- [press(forDuration:thenDragTo:)](xcuiautomation/xcuicoordinate/press(forduration:thendragto:).md)
- [press(forDuration:thenDragTo:withVelocity:thenHoldForDuration:)](xcuiautomation/xcuicoordinate/press(forduration:thendragto:withvelocity:thenholdforduration:).md)
