ApproachMeasureScope

Interface

Common
sealed interface ApproachMeasureScope : ApproachIntrinsicMeasureScope, MeasureScope

ApproachMeasureScope provides access to lookahead results to allow ApproachLayoutModifierNode to leverage lookahead results to define how measurements and placements approach their destination.

ApproachMeasureScope.lookaheadSize provides the target size of the layout. By knowing the target size and position, layout adjustments such as animations can be defined in ApproachLayoutModifierNode to morph the layout gradually in both size and position to arrive at its precalculated bounds.