


Setting UpĠ3:34 Let's start working on a new implementation. Influencing the rest of the layout, thus taking away the chance for theĬontainer view to adapt its size naturally to its contents. When we offset a view, we draw it in a different place without

Measured size is constant and not dependent on the surrounding layout.Ġ2:35 Another reason why the container's height doesn't match with itsĬontents is that we're using offsets to place the items within a frame with a Should propose a nil size to these items and then measure them, so that the Problem in the way we measure the size of each item in the flow layout. And it would become possible to place two instancesĠ2:10 Besides having the geometry reader on the outside, there's also a That way, the flow layout view could also Width, not allow the view to become any wider, and only let it become as high as View is a geometry reader, which always takes on the proposed size in order toĠ1:29 An ideal version of this component would only use the proposed If we were to look at the implementation, we'd see that the outermost See one of the issues with this implementation - the flow layout container'sĠ1:11 The border basically illustrates the proposed size for this flow If we add a red border around the layout, we When we run theĪpp in the simulator, we can control the container's width using a slider and When we discussed this topic a year and a half ago over the course of threeĠ0:29 Let's first take a look at what we built back then. We think we can implement a better version of it - and in a simpler way - than 00:06 Today we'll take another stab at building a flow layout in SwiftUI.
