CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

TableViewReloadAnimation 0.0.5

TableViewReloadAnimation 0.0.5

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by shota ioramashvili.



  • By
  • shota ioramashvili

Reload tableview with animation

right to left bottom to top left to right top to bottom
with header and footer .rotation3D(type: .ironMan) .rotation3D(type: .thor) .rotation3D(type: .spiderMan)
.rotation3D(type: .captainMarvel) .rotation3D(type: .doctorStrange) .rotation3D(type: .daredevil) .rotation3D(type: .deadpool)

Requirements

  • iOS 9.0+

Usage

// left animation
tableView.reloadData(
    with: .simple(duration: 0.45, direction: .left(useCellsFrame: true),
    constantDelay: 0))

// right spring animation
tableView.reloadData(
    with: .spring(duration: 0.45, damping: 0.65, velocity: 1, direction: .right(useCellsFrame: false),
    constantDelay: 0))

// rotation spting animation
tableView.reloadData(
    with: .spring(duration: 0.45, damping: 0.65, velocity: 1, direction: .rotation(angle: Double.pi / 2),
    constantDelay: 0))

// rotation 3d
tableView.reloadData(
    with: .simple(duration: 0.75, direction: .rotation3D(type: .ironMan),
    constantDelay: 0))