---
title: "withOffset(_:)"
framework: xcuiautomation
role: symbol
role_heading: Instance Method
path: "xcuiautomation/xcuicoordinate/withoffset(_:)"
---

# withOffset(_:)

Creates a new coordinate with an absolute offset in points from the original coordinate.

## Declaration

```swift
func withOffset(_ offsetVector: CGVector) -> XCUICoordinate
```
