zIndex

Places the child at zIndex in its container's paint and hit-testing order: a child with a larger value paints over, and receives a mouse event before, every sibling with a smaller one. Siblings with the same value keep the order they are declared in, the last on top, whatever order their container places them in. A child declaring none is at 0f.

Multiple declarations add their values, and add to the z-index the container places the child with.

Return

this modifier with the child's z-index declared on it.

Parameters

zIndex

where the child sits among its siblings, the largest on top