---
title: XCUIGestureVelocity
framework: xcuiautomation
role: symbol
role_heading: Structure
path: xcuiautomation/xcuigesturevelocity
---

# XCUIGestureVelocity

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

## Declaration

```swift
struct XCUIGestureVelocity
```

## Topics

### Creating a gesture velocity

- [init(_:)](xcuiautomation/xcuigesturevelocity/init(_:).md)
- [init(rawValue:)](xcuiautomation/xcuigesturevelocity/init(rawvalue:).md)

### Using typical gesture velocities

- [default](xcuiautomation/xcuigesturevelocity/default.md)
- [fast](xcuiautomation/xcuigesturevelocity/fast.md)
- [slow](xcuiautomation/xcuigesturevelocity/slow.md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Copyable](swift/copyable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByFloatLiteral](swift/expressiblebyfloatliteral.md)
- [ExpressibleByIntegerLiteral](swift/expressiblebyintegerliteral.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Performing gestures

- [swipeLeft()](xcuiautomation/xcuielement/swipeleft().md)
- [swipeLeft(velocity:)](xcuiautomation/xcuielement/swipeleft(velocity:).md)
- [swipeRight()](xcuiautomation/xcuielement/swiperight().md)
- [swipeRight(velocity:)](xcuiautomation/xcuielement/swiperight(velocity:).md)
- [swipeUp()](xcuiautomation/xcuielement/swipeup().md)
- [swipeUp(velocity:)](xcuiautomation/xcuielement/swipeup(velocity:).md)
- [swipeDown()](xcuiautomation/xcuielement/swipedown().md)
- [swipeDown(velocity:)](xcuiautomation/xcuielement/swipedown(velocity:).md)
- [pinch(withScale:velocity:)](xcuiautomation/xcuielement/pinch(withscale:velocity:).md)
- [rotate(_:withVelocity:)](xcuiautomation/xcuielement/rotate(_:withvelocity:).md)
