WorkspaceFlow

@objcMembers open class WorkspaceFlow: Workspace

Subclass of Workspace that should be used to populate a WorkspaceFlowLayout.

  • Defines information on how each item should be laid out in the layout.

    Declaration

    Swift

    @objcMembers public class Item: NSObject
  • List of all elements that have been added

    Declaration

    Swift

    public fileprivate(set) var items = [Item]()
  • Adds a gap between the last block that was added and the next block that will be added.

    Note

    Trailing gaps are truncated and ignored on layout.

    Declaration

    Swift

    open func addGap(_ gap: CGFloat = 24)