https://github.com/harshalrj25/animatablereload
Add animations to tableview and collectionview with just a single line of code
https://github.com/harshalrj25/animatablereload
animation animation-library animations collectionview ios ios-animation ios-demo ios-swift ios-tutorial ios-ui reload swift swift5 tableview uicollectionview uitableview
Last synced: 9 days ago
JSON representation
Add animations to tableview and collectionview with just a single line of code
- Host: GitHub
- URL: https://github.com/harshalrj25/animatablereload
- Owner: harshalrj25
- License: mit
- Created: 2017-04-18T07:12:47.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-18T11:59:37.000Z (almost 6 years ago)
- Last Synced: 2024-10-08T07:03:12.603Z (7 months ago)
- Topics: animation, animation-library, animations, collectionview, ios, ios-animation, ios-demo, ios-swift, ios-tutorial, ios-ui, reload, swift, swift5, tableview, uicollectionview, uitableview
- Language: Swift
- Homepage:
- Size: 1.13 MB
- Stars: 25
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AnimatableReload
[](https://travis-ci.org/harshalrj25/AnimatableReload)
[](http://cocoapods.org/pods/AnimatableReload)
[](http://cocoapods.org/pods/AnimatableReload)
[](http://cocoapods.org/pods/AnimatableReload)Animate tableview and collectionview with few lines of code.
pod "AnimatableReload"
import AnimatableReload
AnimatableReload.reload(tableView: self.demoTableView, animationDirection: "up")
Instead of using reload method of tableview and collectionview, just use the above method to reload with animations.
you can also specify the directions of animations.
## Usage
For tableview:
AnimatableReload.reload(tableView: self.demoTableView, animationDirection: "up")For collectionview:
AnimatableReload.reload(collectionView: self.demoCollectionView, animationDirection: "up")
You can animate from following directions:
AnimatableReload.reload(tableView: self.demoTableView, animationDirection: "up")
AnimatableReload.reload(tableView: self.demoTableView, animationDirection: "down")
AnimatableReload.reload(tableView: self.demoTableView, animationDirection: "left")
AnimatableReload.reload(tableView: self.demoTableView, animationDirection: "right")
AnimatableReload.reload(collectionView: self.demoCollectionView, animationDirection: "up")
AnimatableReload.reload(collectionView: self.demoCollectionView, animationDirection: "down")
AnimatableReload.reload(collectionView: self.demoCollectionView, animationDirection: "left")
AnimatableReload.reload(collectionView: self.demoCollectionView, animationDirection: "right")## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
AnimatableReload is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "AnimatableReload"
```## Author :innocent:
My email id, [email protected]
Harshal Jadhav
## License
It's all your's :gift: