ViewDescriptionContext

public struct ViewDescriptionContext

The context passing to the backingViewDescription of an Element.

  • The bounds of this element after layout is complete.

    Declaration

    Swift

    public var bounds: CGRect
  • A rectangle in the local coordinate space that contains any children. This will be nil if there are no children.

    Declaration

    Swift

    public var subtreeExtent: CGRect?
  • The environment the element is rendered in.

    Declaration

    Swift

    public var environment: Environment
  • Declaration

    Swift

    public init(bounds: CGRect, subtreeExtent: CGRect?, environment: Environment)