Measurable
public protocol Measurable
Conforming types can calculate the size that they require within a layout.
-
Measures the required size of the receiver.
Declaration
Swift
func measure(in constraint: SizeConstraint) -> CGSize
Parameters
constraint
The size constraint.
Return Value
The layout size needed by the receiver.