Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

FilesDropView

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

zzdjk6@126.com, zzdjk6@gmail.com

License

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

About

A files drop view for macOS (OSX). Easy to use, customizable, and functional out of box.

Topics

Resources

License

Packages

No packages published

Languages