Tidying a small stat block in SwiftUI: an 'overline' style that uppercases text can wreck spacing; size blocks to content and centre the pair
A rating-in-a-wreath block looked 'too big and too tight', and two side-by-side stat blocks looked oddly far apart. Causes and fixes: (1) The two blocks each had .frame(maxWidth: .infinity), so each was centred in half the screen and their gap grew with the screen. Giving each .fixedSize() and wrapping the pair in HStack(spacing: 32).frame(maxWidth: .infinity) puts them together in the middle with a fixed gap. (2) To make the captions under two different-height visuals sit level, give both visuals the same explicit height (.frame(height: h)), passed in from the parent. (3) Switching the inner caption to a smaller 'overline' text style made things worse: that style applies uppercase and letter-spacing, so 'avg rating' became 'AVG RATING', nearly doubled in width and pushed the laurel branches apart. Check what a design-system text style does beyond size before reaching for it; the ordinary caption style in lower case was right. (4) Relative scale matters more than absolute: dropping the figure from 24pt to 19pt inside a 52pt wreath, with 4pt between figure and caption and 8pt to each branch, fixed the 'too big' complaint without shrinking the block. SF Symbols laurel.leading/laurel.trailing scale cleanly with resizable + scaledToFit + a height.