Centered

public struct Centered : ProxyElement

Centers a content element within itself.

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 Centered element.

  • The content element to be centered.

    Declaration

    Swift

    public var wrapped: Element
  • Initializes a Centered element with the given content element.

    Declaration

    Swift

    public init(_ wrapped: Element)
  • Declaration

    Swift

    public var elementRepresentation: Element { get }