public sealed interface ResizeMode
There are two different modes to resize child layout of sharedBounds during bounds transform: 1) scaleToBounds and 2) RemeasureToBounds.
scaleToBounds first measures the child layout with the lookahead constraints, similar to skipToLookaheadSize. Then the child's stable layout will be scaled to fit in the shared bounds.
In contrast, RemeasureToBounds will remeasure and relayout the child layout of sharedBounds with animated fixed constraints based on the size of the bounds transform. The re-measurement is triggered by the bounds size change, which could potentially be every frame.
scaleToBounds works best for Texts and bespoke layouts that don't respond well to constraints change. RemeasureToBounds works best for background, shared images of different aspect ratios, and other layouts that adjust themselves visually nicely and efficiently to size changes.