Skip to content

A Swift extension for UITableView which makes animation easy

Notifications You must be signed in to change notification settings

lone-necromancer/TableViewAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TableViewAnimation

Available for Swift 3+ A Swift extension for UITableView which makes animation easy

all you have to do for it to work is:

  1. download the classes put them in your project

  2. implement the func:

    func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath)

  3. call the func "animateCells" inside the "willDisplay" cell you implemented:

tableView.animateCells(AnimationFactory.makeMoveUpWithFade(rowHeight: cell.frame.height, duration: 0.5, delayFactor: 0.05), tableView: tableView, cell: cell, indexPath: indexPath)

with the proper variables u want this is an example of moving the cells with fade animation.

i have included 4 types of animations which you can conntrol the variables yourself such as:

  • makeFadeAnimation.
  • makeMoveUpWithBounce.
  • makeMoveUpWithFade.
  • makeSlideIn.

if you have any bright ideas, just make a pull request and i'll go over it.

hope you find it useful.

author: Aviv Frenkel

About

A Swift extension for UITableView which makes animation easy

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages