<!--
{
  "availability" : [
    "*: -",
    "Xcode: 16.3.0 -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "XCUIAutomation",
  "identifier" : "/documentation/XCUIAutomation/XCUIElement/swipeUp(withVelocity:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "XCUIAutomation"
    ],
    "preciseIdentifier" : "s:So11XCUIElementC14XCUIAutomationE7swipeUp12withVelocityySo011XCUIGestureF0a_tF"
  },
  "title" : "swipeUp(withVelocity:)"
}
-->

# swipeUp(withVelocity:)

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

```
@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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)