TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Dec 2016 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by LeoMobileDeveloper.
DraggableTableView is a UITableView
extesntion to make tableview draggable by long press.
CocoaPod
pod "DraggableTableView"
Enable dragable and set delegate
self.tableView.dragable = true
self.tableView.dragableDelegate = self
In delegate method,
//Required, manage data source here
func tableView(tableView: UITableView, dragCellFrom fromIndexPath: NSIndexPath, toIndexPath: NSIndexPath)
//Optional, decide if a cell can be draged from
func tableView(tableView: UITableView, canDragCellTo indexPath: NSIndexPath) -> Bool
//Optional, decide if a cell can be draged to
func tableView(tableView: UITableView, canDragCellFrom indexPath: NSIndexPath, withTouchPoint point: CGPoint)
Leo, [email protected]
DraggableTableView is available under the MIT license. See the LICENSE file for more info.