LayoutPhase
public enum LayoutPhase : Equatable
The current phase of the layout event: .measurement or .layout.
-
The element is being measured.
Declaration
Swift
case measurement -
The element is being laid out with a known size.
Declaration
Swift
case layout(CGSize) -
Returns the provided value based on if a measurement or layout is occurring.
Declaration
Swift
public func onMeasure<Value>( _ onMeasure: () -> Value, onLayout: (CGSize) -> Value ) -> Value
View on GitHub
LayoutPhase Enumeration Reference