TableViewReloadAnimation 0.0.5

TableViewReloadAnimation 0.0.5

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布日期最新版本2017年4月
SwiftSwift 版本3.0
SPM支持 SPM

shota ioramashvili 维护。



  • shota ioramashvili

使用动画重新加载 tableview

从右到左 从下到上 从左到右 从上到下
带有头部和脚部 .rotation3D(type: .ironMan) .rotation3D(type: .thor) .rotation3D(type: .spiderMan)
.rotation3D(type: .captainMarvel) .rotation3D(type: .doctorStrange) .rotation3D(type: .daredevil) .rotation3D(type: .deadpool)

要求

  • iOS 9.0+

用法

// 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))