Reading time: 1 min
This quick recipe shows how to measure a SwiftUI View, i.e get its size at runtime. This is useful when your layout depends on a particular view's dimensions.
SwiftUI can be confusing and frustrating, so this site gathers no-nonsense, straight-to-the-point recipes on how to get sh*t done!
Our cookbok has over a 100 recipes and it grows
Reading time: 1 min
This quick recipe shows how to measure a SwiftUI View, i.e get its size at runtime. This is useful when your layout depends on a particular view's dimensions.