An alignment position along the horizontal axis
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
@frozen struct VerticalAlignment
An alignment position along the horizontal axis
SDKs
Framework
@frozen struct VerticalAlignment
init(Alignment ID .Type)
Creates an instance with the given ID.
static let bottom: Vertical Alignment
A guide marking the bottom edge of the view.
static let center: Vertical Alignment
A guide marking the vertical center of the view.
static let first Text Baseline: Vertical Alignment
A guide marking the topmost text baseline view.
static let last Text Baseline: Vertical Alignment
A guide marking the bottom-most text baseline in a view.
static let top: Vertical Alignment
A guide marking the top edge of the view.
init(alignment: Vertical Alignment, spacing: CGFloat?, content: () -> Content)
Creates an instance with the given spacing
and Y axis alignment
.