Dragger

@objcMembers public final class Dragger: NSObject

Controller for dragging blocks around in the workspace.

  • Disconnect the given block layout from any superior connections and start dragging it (and any of its connected block layouts) in the workspace.

    Declaration

    Swift

    public func startDraggingBlockLayout(_ layout: BlockLayout, touchPosition: WorkspacePoint) throws
  • Continue dragging a block layout (and any of its connected block layouts) in the workspace.

    Declaration

    Swift

    public func continueDraggingBlockLayout(_ layout: BlockLayout, touchPosition: WorkspacePoint)
  • Finish dragging a block layout (and any of its connected block layouts) in the workspace.

    Declaration

    Swift

    public func finishDraggingBlockLayout(_ layout: BlockLayout)
  • Cancels dragging a block layout (and any of its connected block layouts) in the workspace.

    Declaration

    Swift

    public func cancelDraggingBlockLayout(_ layout: BlockLayout)
  • Cancels all existing drags in the workspace.

    Declaration

    Swift

    public func cancelAllDrags()