ConnectionValidator

public protocol ConnectionValidator

Protocol for handling block-level connection logic. Can be overridden for custom logic and passed into the workspace for application-specific behaviors.

  • Check if the two connections can be dragged to connect to each other.

    Declaration

    Swift

    func canConnect(_ moving: Connection, toConnection candidate: Connection) -> Bool

    Return Value

    True if the connection is allowed, false otherwise.