<!--
{
  "availability" : [
    "Xcode: 16.3.0 -",
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "XCUIAutomation",
  "identifier" : "/documentation/XCUIAutomation/XCUIGestureVelocity",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "XCUIAutomation"
    ],
    "preciseIdentifier" : "c:@T@XCUIGestureVelocity"
  },
  "title" : "XCUIGestureVelocity"
}
-->

# XCUIGestureVelocity

A value that describes how fast a gesture moves across the screen, in pixels per second.

```
struct XCUIGestureVelocity
```

## Topics

### Creating a gesture velocity

[`init(_:)`](/documentation/XCUIAutomation/XCUIGestureVelocity/init(_:))

Creates a gesture velocity, expressed as a float.

[`init(rawValue:)`](/documentation/XCUIAutomation/XCUIGestureVelocity/init(rawValue:))

Creates a gesture velocity with a raw value, expressed as a float.

### Using typical gesture velocities

[`default`](/documentation/XCUIAutomation/XCUIGestureVelocity/default)

A value representing a default gesture velocity.

[`fast`](/documentation/XCUIAutomation/XCUIGestureVelocity/fast)

A value representing a fast gesture velocity.

[`slow`](/documentation/XCUIAutomation/XCUIGestureVelocity/slow)

A value representing a slow gesture velocity.



---

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)