SwiftUI normally enforces one-way data flow:


parent → child


But real apps often need the opposite:


child reports its size to a parent

scroll position flows upward

geometry affects headers, toolbars, or overlays

multiple children contribute values to a container



That’s where PreferenceKeys and Anchors come in.

They are one of the least...