The guide for aligning the subviews in this stack. このスタックの中のサブビューを整列するためのガイド。 This guide has the same vertical screen coordinate for every child view.
Initializerinit(alignment:
init(alignment:spacing:content:)
Creates a horizontal stack with the given spacing and vertical alignment.
Availability 有効性
- iOS 13.0+
- iPadOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
Technology
- Swift
UI
Declaration 宣言
init(alignment: VerticalAlignment
= .center, spacing: CGFloat
? = nil, content: () -> Content)
Parameters パラメータ
alignment
spacing
The distance between adjacent subviews, or
nil
if you want the stack to choose a default distance for each pair of subviews.content
A view builder that creates the content of this stack. あるビュービルダー、それはこのスタックの内容を作成します。