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
GeometryProxyitself (unless a constraint is explicitly provided).Declaration
Swift
public func measure(element: Element, in explicit: SizeConstraint? = nil) -> CGSize
View on GitHub
GeometryProxy Structure Reference