Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pratik-123/uitableviewcellanimation
Basic tabeview cell animation for best way to display cell
https://github.com/pratik-123/uitableviewcellanimation
animation display fadein fadeout ios left-to-right moveing swift4 uitableview uitableviewcell xcode
Last synced: 2 days ago
JSON representation
Basic tabeview cell animation for best way to display cell
- Host: GitHub
- URL: https://github.com/pratik-123/uitableviewcellanimation
- Owner: pratik-123
- Created: 2018-09-24T06:07:30.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-15T16:01:00.000Z (almost 6 years ago)
- Last Synced: 2024-10-31T16:08:52.268Z (14 days ago)
- Topics: animation, display, fadein, fadeout, ios, left-to-right, moveing, swift4, uitableview, uitableviewcell, xcode
- Language: Swift
- Size: 469 KB
- Stars: 30
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# UITableViewCellAnimation
UITableViewCellAnimation is collection of animation in swift4 to perform animation in uitableviewcell.
# Requirements- Xcode 9+
- Swift 4# How to use
Copy UITableViewCellAnimationKit.swift file in your project and use it simply with UITableViewCell to .method# OR
UITableViewCellAnimation is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'UITableViewCellAnimation'
```If you install pod then "import UITableViewCellAnimation" else simply use like below.
for more info visit [UITableViewCellAnimation](https://www.swiftlearn.net/2018/09/uitableviewcell-animation.html).# Example
```
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if (animationType == .bounce){
cell.bouncingAnimation(forIndex: indexPath.row)
}else if (animationType == .moveIn){
cell.moveInAnimation(forIndex: indexPath.row)
}else if (animationType == .leftIn){
cell.leftInAnimation(forIndex: indexPath.row)
}else if (animationType == .rightIn){
cell.rightInAnimation(forIndex: indexPath.row)
}else if (animationType == .side){
if (indexPath.row % 2 == 0){
cell.leftInAnimation(forIndex: indexPath.row)
}else{
cell.rightInAnimation(forIndex: indexPath.row)
}
}else{
cell.fadeInAnimation(forIndex: indexPath.row)
}
}
```![alt tag](https://github.com/pratik-123/UITableViewCellAnimation/blob/master/tableviewcell.png)