Since the second subview used less space than proposed, the HStack now has 300 pt left over to propose to its final child, the yellow color. In general, HStacks and VStacks first group their subviews by layout priority (more on that below), and then order the views inside each group by flexibility such that the least flexible views are laid out first. The first layout group only contains a single view, our relative sizing modifier with the yellow color.