---
title: GeometryReader3D
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/geometryreader3d
---

# GeometryReader3D

A container view that defines its content as a function of its own size and coordinate space.

## Declaration

```swift
@frozen nonisolated struct GeometryReader3D<Content> where Content : View
```

## Overview

Overview This view returns a flexible preferred size to its own container view. This container differs from GeometryReader in that it also reads available depth, and thus also returns a flexible preferred depth to its parent layout. Use the 3D version only in situations where you need to read depth, because it affects depth layout when used in a container like a ZStack.

## Topics

### Creating a geometry reader

- [init(content:)](swiftui/geometryreader3d/init(content:).md)
- [content](swiftui/geometryreader3d/content.md)

## Relationships

### Conforms To

- [View](swiftui/view.md)

## See Also

### Measuring a view

- [GeometryReader](swiftui/geometryreader.md)
- [GeometryProxy](swiftui/geometryproxy.md)
- [GeometryProxy3D](swiftui/geometryproxy3d.md)
- [coordinateSpace(_:)](swiftui/view/coordinatespace(_:).md)
- [CoordinateSpace](swiftui/coordinatespace.md)
- [CoordinateSpaceProtocol](swiftui/coordinatespaceprotocol.md)
- [PhysicalMetric](swiftui/physicalmetric.md)
- [PhysicalMetricsConverter](swiftui/physicalmetricsconverter.md)
