Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/ioramashvili/tableviewreloadanimation
- Owner: ioramashvili
- License: mit
- Created: 2017-04-14T18:28:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-18T12:44:21.000Z (over 7 years ago)
- Last Synced: 2024-10-12T14:40:35.951Z (about 1 month ago)
- Topics: animation, ios, swift-3, tableview
- Language: Swift
- Size: 10.2 MB
- Stars: 97
- Watchers: 6
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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))
```