ZStackLayout

An overlaying container that you can use in conditional layouts.

ComponentiOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+ZStackLayout in SwiftUI

Declaration

React
import { ZStackLayout } from 'swiftui-react-native';
Swift
@frozen struct ZStackLayout

Initializers

One SwiftUI initializer backs <ZStackLayout>.

React
<ZStackLayout
  alignment?: SwiftUI.Alignment
>
  children?: ReactNode
</ZStackLayout>
Swift
init(alignment: Alignment = .center)
  • childrenReactNode

    The views this layout arranges.

  • The guide for aligning the subviews in this stack on both the x- and y-axes.

    Default `.center`

Also takes the common view props: modifiers, style and testID.

See also

More in Layout.