---
title: "swipeUp(withVelocity:)"
framework: xcuiautomation
role: symbol
role_heading: Instance Method
path: "xcuiautomation/xcuielement/swipeup(withvelocity:)"
---

# swipeUp(withVelocity:)

Sends a swipe-up gesture with a velocity you specify.

## Declaration

```swift
@MainActor @nonobjc @preconcurrency func swipeUp(withVelocity velocity: XCUIGestureVelocity)
```

## Parameters

- `velocity`: The speed at which to perform the swipe-up gesture, expressed in pixels per second.

## See Also

### Deprecated methods

- [swipeDown(withVelocity:)](xcuiautomation/xcuielement/swipedown(withvelocity:).md)
- [swipeLeft(withVelocity:)](xcuiautomation/xcuielement/swipeleft(withvelocity:).md)
- [swipeRight(withVelocity:)](xcuiautomation/xcuielement/swiperight(withvelocity:).md)
