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.
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.
The MIT License (MIT)