Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Protocol-oriented solution to add quick cells rearrange/reorder to UITableView, written in Swift 2.2

License

Notifications You must be signed in to change notification settings

okla/QuickRearrangeTableView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

QuickRearrangeTableView

###Overview###

Long press on a cell to catch it, then move it anywhere you want. Table view scrolls up or down when catched cell is near the top or bottom edge of the table view.

QuickRearrangeTableView has two predefined catch style options: hover

and translucency

###Installation###

• Add QuickRearrangeTableView.swift to your project

###Usage###

• Make view controller containing your table view adopt RearrangeDataSource protocol (or use any other object as data source)

• Make your table view class adopt Rearrangable protocol: add var rearrange: RearrangeProperties! to its declaration and paste its type name to extension _: Rearrangable

• Call setRearrangeOptions(options: dataSource:) and pass options and data source object

Usage example included, tested in Xcode 7.3, iOS 9.3

About

Protocol-oriented solution to add quick cells rearrange/reorder to UITableView, written in Swift 2.2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages