---
title: "swipeDown"
description: "Performs a swipe down gesture along the [centerX] of the associated node. The gesture starts
slightly below the [top] of the node and ends at the [bottom]."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`

```kotlin
fun GestureScope.swipeDown() = delegateScope.touch { swipeDown() }
```


Performs a swipe down gesture along the `centerX` of the associated node. The gesture starts
slightly below the `top` of the node and ends at the `bottom`.



<div class='sourceset sourceset-common'>Common</div>


> **Deprecated** Replaced by TouchInjectionScope. Use `performTouchInput` instead of `performGesture`

```kotlin
@ExperimentalTestApi
fun GestureScope.swipeDown(
    startY: Float = topFuzzed,
    endY: Float = bottom,
    durationMillis: Long = 200,
) = delegateScope.touch { swipeDown(startY, endY, durationMillis) }
```


Performs a swipe down gesture along the `centerX` of the associated node, from `startY` till
`endY`, taking `durationMillis` milliseconds.

#### Parameters

| | |
| --- | --- |
| startY | The y-coordinate of the start of the swipe. Must be less than or equal to the `endY`. By default slightly below the `top` of the node. |
| endY | The y-coordinate of the end of the swipe. Must be greater than or equal to the `startY`. By default the `bottom` of the node. |
| durationMillis | The duration of the swipe. By default 200 milliseconds. |




<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun TouchInjectionScope.swipeDown(
    startY: Float = top,
    endY: Float = bottom,
    durationMillis: Long = 200,
)
```


Performs a swipe down gesture along `x = `centerX`` of the associated node, from `startY` till
`endY`, taking `durationMillis` milliseconds.

#### Parameters

| | |
| --- | --- |
| startY | The y-coordinate of the start of the swipe. Must be less than or equal to the `endY`. By default the `top` of the node. |
| endY | The y-coordinate of the end of the swipe. Must be greater than or equal to the `startY`. By default the `bottom` of the node. |
| durationMillis | The duration of the swipe. By default 200 milliseconds. |




