Class
Layout
public class Layout
Layout provides the ability to layout a series of Rects using
specified rules. The order of each Rect is always preserved.
Relationships
Nested Types
Layout.ChildAttributeLayout.ChildRule
Methods
property(attribute:childRects:)
public static func property(attribute:ChildAttribute, childRects:[Rect]) -> Int
Analyzes the childRects and calculates the specified property of the collection
apply(rule:childRects:)
public static func apply(rule:ChildRule, childRects:[Rect]) -> [Rect]
Applies the specified rule to the collection of Rects and returns
a new collection, maintaining the original order