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

# offset(_:)

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

## Declaration

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

```

## Parameters

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

## Return Value

Return Value An effect that offsets the view by offset.
