Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ioramashvili/tableviewreloadanimation

Reload tableview with animation
https://github.com/ioramashvili/tableviewreloadanimation

animation ios swift-3 tableview

Last synced: about 1 month ago
JSON representation

Reload tableview with animation

Awesome Lists containing this project

README

        

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+

## Installation

### CocoaPods

[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:

```bash
$ gem install cocoapods
```

To integrate TableViewReloadAnimation into your Xcode project using CocoaPods, specify it in your `Podfile`:

```ruby
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target '' do
pod 'TableViewReloadAnimation', '~> 0.0.5'
end
```

Then, run the following command:

```bash
$ pod install
```

## Usage

```swift
import TableViewReloadAnimation

```
in viewDidAppear

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

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

// rotation with spring
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))
```