Gestures

public class Gestures : NSObject

Wrapper class to manage Gesture instances

  • Add a gesture

    Declaration

    Swift

    @objc
    public func add() -> Gesture

    Return Value

    a new Gesture instance

  • Add a Gesture with a name

    Declaration

    Swift

    @objc
    public func add(_ name: String) -> Gesture

    Parameters

    name

    Gesture name

    Return Value

    a new Gesture instance

  • Add a gesture with a name and a chapter

    Declaration

    Swift

    @objc
    public func add(_ name: String, chapter1: String) -> Gesture

    Parameters

    name

    Gesture name

    chapter1

    chapter1 label

    Return Value

    a new Gesture instance

  • Add a gesture with a name and chapters

    Declaration

    Swift

    @objc
    public func add(_ name: String, chapter1: String, chapter2: String) -> Gesture

    Parameters

    name

    Gesture name

    chapter1

    chapter1 label

    chapter2

    chapter2 label

    Return Value

    a new Gesture instance

  • Add a gesture with a name and chapters

    Declaration

    Swift

    @objc
    public func add(_ name: String, chapter1: String, chapter2: String, chapter3: String) -> Gesture

    Parameters

    name

    Gesture name

    chapter1

    chapter1 label

    chapter2

    chapter2 label

    chapter3

    chapter3 label

    Return Value

    a new Gesture instance