pub fn shared_flip(id: impl Into<SharedString>, cx: &mut App) -> FlipExpand description
The slide handle for id, kept alive across a handoff between two element
trees.
A row that opens into a detail panel is two elements in two trees with one
identity. Because the state is keyed by id rather than by element, the
panel inverts from the rectangle the row last recorded and travels there
instead of cutting. What this adds over flip is only patience: the
rectangle survives the frames in which neither tree renders the id, up to
30 frames and 500 ms of wall clock, whichever ends first. Past that the
arriving element is simply already in place.
Both trees rendering the id at once is a collision, and a collision does
not animate; see Flip::is_contended.