Latest 0.0.1
Homepage https://github.com/HongliYu/DPDraggableButton-Swift
License MIT
Platforms ios 9.0, requires ARC
Frameworks UIKit, Foundation
Authors

DPDraggableButton-Swift

Drag or tap the button to trigger Gesture event

Cocoapods
Pod License

screenshot

Usage


    draggableButton.tapBlock = {
        print("[single tap]")
    }

    draggableButton.doubleTapBlock = {
        print("[double tap]")
    }

    draggableButton.longPressBlock = {
        print("[longpress]")
    }

    draggableButton.draggingBlock = {
        print("[dragging]")
    }

    draggableButton.dragDoneBlock = {
        print("[drag done]")
    }

    draggableButton.autoDockingBlock = {
        print("[auto docking]")
    }

    draggableButton.autoDockingDoneBlock = {
        print("[auto docking done]")
    }

Latest podspec

{
    "name": "DPDraggableButton",
    "version": "0.0.1",
    "summary": "Draggable Button",
    "description": "Drag or tap the button to trigger gesture event",
    "homepage": "https://github.com/HongliYu/DPDraggableButton-Swift",
    "license": "MIT",
    "authors": {
        "HongliYu": "[email protected]"
    },
    "source": {
        "git": "https://github.com/HongliYu/DPDraggableButton-Swift.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "DPDraggableButton/*.swift",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "module_name": "DPDraggableButton"
}

Pin It on Pinterest

Share This