← Back to Compose UI
Creates an intermediate layout intended to help morph the layout from the current layout to the lookahead (i.e. pre-calculated future) layout.
This modifier will be invoked after lookahead pass and will have access to the lookahead results in measure. Therefore:
- intermediateLayout measure/layout logic will not affect lookahead pass, but only be invoked during the main measure/layout pass, and 2) measure block can define intermediate changes that morphs the layout in the main pass gradually until it converges lookahead pass.
@ExperimentalComposeUiApi fun Modifier.intermediateLayout( measure: IntermediateMeasureScope.( measurable: Measurable, constraints: Constraints, ) -> MeasureResult, )