shaffex

ZStack is a view that layers its children on top of each other, aligning them in both the horizontal and vertical axes. The alignment parameter determines how the views are aligned within the ZStack.

Parameters:

alignment (optional) This parameter determines the alignment of the views within the ZStack. It’s of type Alignment and can take the following values:

Default value: center

Example with circles in zstack

<body>
    <zstack>
        <circle foregroundColor="red"/>
        <circle foregroundColor="green" padding="50"/>
        <circle foregroundColor="blue" padding="100"/>
    </zstack>
</body>

Screenshot