Skip to content

riamf/BendCell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Bendable UITableViewCell while scrolling

Resources

License

Stars

Watchers

Forks

Packages

No packages published