Skip to content

Latest commit

 

History

History
44 lines (29 loc) · 1.29 KB

README.md

File metadata and controls

44 lines (29 loc) · 1.29 KB

BendCell

Carthage compatible

Sample Gif:

Description

It is a simple framework to simulate UITableViewCell bending during scrolling. Cell will be bend in the scrolling direction. It is all done with the power of drawing.

How to use

It can be used with cells created from Xcode interface builder (storyboard or xib) and from code if you want to implement cells by your self.

Every cell should inherit from BendableCell like in the example

class XibCell: BendableCell {
  // cell stuff here
}

Also your class implementing UITableViewDelegate should now inherit from BendableTableViewController :

class ViewController: BendableTableViewController {
  // class stuff here
}

After that there is no need to declare conformance to UITableViewDelegate protocol.

BendableTableViewController implements few of the protocol functions, listed:

  • scrollViewDidScroll
  • scrollViewDidEndDragging
  • scrollViewDidEndDecelerating
  • scrollViewDidScrollToTop

So please remember to call super if you want to them in your own code.

License

The MIT License (MIT)