Skip to main content

layer

Function layer 

Source
pub fn layer(view: impl IntoView) -> impl IntoView
Expand description

Create a single layer (absolute positioned view that fills its container).

This is useful for creating overlapping views for z-index testing.

§Example

let view = layer(Empty::new().z_index(5));