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
diagramViewThe 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
TouchInputControllerobjects, 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
BehaviorBase Class Reference