Child

public struct Child

A child of the custom layout, providing its frame and element.

  • The frame of the element in the coordinate space of the custom layout.

    Declaration

    Swift

    public var frame: CGRect
  • key

    The key to use to disambiguate this element.

    Declaration

    Swift

    public var key: AnyHashable?
  • The element to be displayed.

    Declaration

    Swift

    public var element: Element
  • Creates a new child element.

    Declaration

    Swift

    public init(
        frame: CGRect,
        key: AnyHashable? = nil,
        element: Element
    )