Contents

zIndex

The element’s position on the z axis.

Declaration

var zIndex: Int { get set }

Discussion

Use this property to specify the front-to-back ordering of items during layout. Items with higher index values appear on top of those with lower values. Items with the same value have an undetermined order.

The default value of this property is 0.

See Also

Accessing the Layout Attributes