GeometryReader Essentials
Measure available space to size content.
Measuring Space
Sometimes a view needs to know how big its slot is. GeometryReader hands you the exact size and position of the space it occupies. 📐
It Is a Container
A GeometryReader is a view whose body is a closure receiving a proxy that describes the available space.
GeometryReader { proxy in
Text("Hi")
}All lessons in this course
- GeometryReader Essentials
- Custom Alignment Guides
- The Layout Protocol
- Building a Flow Layout