Contents

zIndex

Specifies the item’s position on the z axis.

Declaration

var zIndex: Int { get set }

Discussion

This property is used to determine the front-to-back ordering of items during layout. Items with higher index values appear on top of items 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