GeometryProxy

public struct GeometryProxy

Contains information about the current layout being measured by GeometryReader

  • The size constraint of the element being laid out.

    Declaration

    Swift

    public var constraint: SizeConstraint
  • Measure the given element, constrained to the same size as the GeometryProxy itself (unless a constraint is explicitly provided).

    Declaration

    Swift

    public func measure(element: Element, in explicit: SizeConstraint? = nil) -> CGSize