Reading time: 1 min
This quick recipe shows how to get size of a SwiftUI View at runtime. This is useful when your layout depends on a particular view's dimensions.
So the trick is to embed a
GeometryReader in the view's
overlay. The resulting
GeometryProxy's size will the that of the view its...
Search our recipes!
Have a recipe for us?
Get in touch and let's grow the cookbook together!