WorkspaceFlowLayout

@objcMembers public final class WorkspaceFlowLayout: WorkspaceLayout

Layout for displaying a list of blocks in Workspace in a flow layout (in a manner similar to UICollectionViewFlowLayout).

  • Defines how consecutive block trees should be laid out relative to each other

    Declaration

    Swift

    public enum LayoutDirection: Int
  • The workspace to layout

    Declaration

    Swift

    public let workspaceFlow: WorkspaceFlow
  • The maximum amount of space to use per line of blocks before a new line of blocks should be created, expressed as a Workspace coordinate unit.

    If self.layoutDirection == .Vertical, this value is the maximum height for a column of consecutive blocks.

    If self.layoutDirection == .Horizontal, this value is the maximum width for a row of consecutive blocks.

    If this value is <= 0, line sizes are not constrained.

    Declaration

    Swift

    public var maximumLineBlockSize: CGFloat = 0
  • The direction in which this layout should place consecutive blocks next to each other

    Declaration

    Swift

    public var layoutDirection = LayoutDirection.vertical