BehaviorBase
open class BehaviorBase
An abstract base class for classes that defines how the Diagram library reacts to users’ gestures.
-
Initializes a new instance of the BehaviorBase class.
Declaration
Swift
public init(diagramView: DiagramView)
Parameters
diagramView
The Diagram this behavior will be associated with.
Return Value
A new instance of the BehaviorBase class.
-
Specifies the controllers for this behavior. A list of
TouchInputController
objects, each one corresponds to a givenTouchInputState
.Declaration
Swift
open var controllers: [((_ state: TouchInputState) -> TouchInputController?)?]
-
Specifies the DiagramView this behavior is associated with.
Declaration
Swift
open var diagramView: DiagramView