Sets the view’s vertical alignment.
SDKs
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- tvOS 13.0+
- watchOS 6.0+
- Xcode 11.0+
Framework
- Swift
UI
Declaration
func alignmentGuide(_ g: Vertical Alignment, computeValue: @escaping (View Dimensions) -> CGFloat) -> some View
Return Value
A view modified so that its value for the given guide is the result of passing the View
of the underlying view to compute
.