Aligned

public struct Aligned : Element

Aligns a content element within itself. The vertical and horizontal alignment may be set independently.

When using alignment mode .fill, the content is scaled to the width or height of the Aligned element.

For other modes, the size of the content element is determined by calling measure(in:) on the content element – even if that size is larger than the wrapping element.