---
title: "scroll(byDeltaX:deltaY:)"
framework: xcuiautomation
role: symbol
role_heading: Instance Method
path: "xcuiautomation/xcuicoordinate/scroll(bydeltax:deltay:)"
---

# scroll(byDeltaX:deltaY:)

Scrolls the view by the number of x and y pixels you specify.

## Declaration

```swift
func scroll(byDeltaX deltaX: CGFloat, deltaY: CGFloat)
```
