---
title: "offset(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/visualeffect/offset(_:)"
---

# offset(_:)

Offsets the view by the horizontal and vertical amount specified in the offset parameter.

## Declaration

```swift
func offset(_ offset: CGSize) -> some VisualEffect

```

## Parameters

- `offset`: The distance to offset the view.

## Return Value

Return Value An effect that offsets the view by offset.

## See Also

### Translating

- [offset(x:y:)](swiftui/visualeffect/offset(x:y:).md)
- [offset(z:)](swiftui/visualeffect/offset(z:).md)
