alignment
TypeScriptget alignment(): AlignmentSwift declarationvar alignment: AlignmentThe alignment of subviews.
struct · iOS 16.0+ · SDK 27.1
@frozen struct ZStackLayoutAn overlaying container that you can use in conditional layouts. This layout container behaves like a ``ZStack``, but conforms to the ``Layout`` protocol so you can use it in the conditional layouts that you construct with ``AnyLayout``. If you don't need a conditional layout, use ``ZStack`` instead.
get alignment(): AlignmentSwift declarationvar alignment: AlignmentThe alignment of subviews.
set alignment(value: Alignment)Swift declarationvar alignment: AlignmentThe alignment of subviews.
static init(alignment?: Alignment): ZStackLayoutSwift declarationinit(alignment: Alignment = .center)Creates a stack with the specified alignment. - Parameters: - alignment: The guide for aligning the subviews in this stack on both the x- and y-axes.
No declarations were skipped in this snapshot.