import SwiftUI /// A branch of a face's view, built in a frame of its own and handed on boxed. /// /// An unoptimised build reserves a function's temporaries for EVERY branch it /// has at entry, and a `@ViewBuilder` `switch` nests its branches' types in /// one conditional value copied at every level: a branch that copies the /// table's definition or a long modifier chain costs kilobytes, and a dozen of /// them cost the old record page's `value` 128 KB of the phone's 1 MB main stack on every /// cell (build 231's crash). Behind this the closure is the branch's own /// frame, entered only when the branch is taken, and the caller holds one /// `AnyView`. The guards are `SurfaceStackTests` and `FaceStackTests`. @inline(never) func boxed(@ViewBuilder _ make: () -> V) -> AnyView { AnyView(make()) }