View Source ZStack

<ZStack>

A container that lays out elements on top of each other, back to front.

Overview

<ZStack>
    <Text>Back</Text>
    <Text>Front</Text>
</ZStack>

Attributes

SwiftUI Documentation

See SwiftUI.ZStack for more details on this View.

References

The alignment in both axes of views within the stack. Defaults to center-aligned.

Discussion

See Alignment.