pub fn animated_compositing_layer<T>(
rect: UiRect,
configure: impl FnOnce(&mut T) + 'static,
) -> Elementwhere
T: CompositingLayerAnimation,Expand description
Creates a retained compositing layer whose application-owned animation state updates only composition properties. Its static children are reused between frames.