<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/VisualEffect/offset(z:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI12VisualEffectPAAE6offset1zQr14CoreFoundation7CGFloatV_tF"
  },
  "title" : "offset(z:)"
}
-->

# offset(z:)

Brings a view forward in Z by the provided distance in points.

```
@export(implementation) func offset(z: CGFloat) -> some VisualEffect
```

## Parameters

`z`

The distance to extrude the view forward in Z, in points.

## Return Value

An effect that is extruded forward in Z by `z`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)