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) -> CGSizeParameters
constraintThe size constraint.
Return Value
The layout size needed by the receiver.
View on GitHub
Measurable Protocol Reference