Latest 0.1.0
Homepage https://github.com/zzdjk6/FilesDropView
License MIT
Platforms osx 10.10
Frameworks Cocoa
Authors

CI Status
Version
License
Platform

How to use

  1. create an IBOutlet weak var filesDropView: FilesDropView?, or create the view with code.

  2. setup callbacks

    You can use onFilesDropped shorcut callback only, or do more customize with other callbacks.

    // Basic shortcut
    filesDropView?.onFilesDropped = { filePathList in
        print("FilesDropView::onFilesDropped")
        dump(filePathList)
    }
    
    // More complex callback
    filesDropView?.onDraggingEnterd = { sender in
        print("FilesDropView::onDraggingEnterd")
        dump(sender)
        return .every
    }
    
    filesDropView?.onDraggingEnded = { sender in
        print("FilesDropView::onDraggingEnded")
        dump(sender)
    }
    
    filesDropView?.onDraggingUpdated = { sender in
        print("FilesDropView::onDraggingUpdated")
        dump(sender)
        return .every
    }
  3. done

Requirements

  • Swfit 3
  • XCode 8.2.1 or later (tested on XCode 8.2.1)

Installation

FilesDropView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "FilesDropView"

Author

[email protected], [email protected]

License

FilesDropView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "FilesDropView",
    "version": "0.1.0",
    "summary": "A files drop view for macOS (OSX). Easy to use, customizable, and functional out of box.",
    "description": "A files drop view for macOS (OSX).nIt's Easy to use, customizable, and functional out of box.",
    "homepage": "https://github.com/zzdjk6/FilesDropView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zzdjk6": "[email protected]"
    },
    "source": {
        "git": "https://github.com/zzdjk6/FilesDropView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "osx": "10.10"
    },
    "source_files": "FilesDropView/Classes/**/*",
    "frameworks": "Cocoa",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This