Back to Developer Roadmap

GeometryReader

src/data/roadmaps/swift-ui/content/[email protected]

4.01003 B
Original Source

GeometryReader

GeometryReader is a container view that provides information about its own size and position within its parent view. It allows you to access the available space offered by the parent, enabling you to create views that adapt dynamically to different screen sizes and orientations. By using a closure, you can access a GeometryProxy object, which contains the frame (size and position) of the GeometryReader. This information can then be used to calculate and position other views relative to the GeometryReader's frame.

Visit the following resources to learn more: