CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

UITableViewCellAnimation 1.0.6

UITableViewCellAnimation 1.0.6

Maintained by Pratik Lad.



  • By
  • Pratik Lad

UITableViewCellAnimation

Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Xcode 9+
  • Swift 4

Installation

UITableViewCellAnimation is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'UITableViewCellAnimation'

UITableViewCellAnimation

UITableViewCellAnimation is collection of animation in swift4 to perform animation in uitableviewcell.

Example

import UITableViewCellAnimation

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

Author

Pratik Lad, [email protected]

License

UITableViewCellAnimation is available under the MIT license. See the LICENSE file for more info.