ToolboxCategoryViewController

@objcMembers public final class ToolboxCategoryViewController: UIViewController

A view for displaying the blocks inside of a Toolbox.Category.

  • The toolbox layout to display

    Declaration

    Swift

    public var toolboxLayout: ToolboxLayout?
  • The current category being displayed

    Declaration

    Swift

    public fileprivate(set) var category: Toolbox.Category?
  • The view containing any UI elements for the header - currently, the Add variable button.

    Declaration

    Swift

    public var headerView: UIView =
  • Currently unused - any buttons that go in the footer

    Declaration

    Swift

    public var footerView: UIView =
  • Accessor for the workspace view controller delegate, so touch functionality can be set easily

    Declaration

    Swift

    public var delegate: WorkspaceViewControllerDelegate?
  • The scroll view from the toolbox workspace’s view controller.

    Declaration

    Swift

    public var workspaceScrollView: WorkspaceView.ScrollView
  • Shows the contents of a given category and automatically resizes view’s size to completely fit the size of the contents.

    Declaration

    Swift

    public func showCategory(_ category: Toolbox.Category, animated: Bool)
  • Hides any open category and automatically resizes the view’s size to (0, 0).

    Declaration

    Swift

    public func hideCategory(animated: Bool)
  • Called when the Add variable button is tapped. Shows the add variable alert.

    Declaration

    Swift

    public func didTapAddButton(_: UIButton)