Hi, I'm Joe everywhere on the web, but especially on Twitter. Or install it manually by downloading UITableView+Animations.swift and dropping it in your project. You can use CocoaPods to install TableFlip by adding it to your Podfile: platform :ios, '8.0' (animation: customAnimation, completion: nil) Let customAnimation = (duration: 0.6, transform: customTransform, options. Let customTransform = ncatenating(flipTransform) Let flipTransform = CGAffineTransform(scaleX: -1, y: -1) Let rotationTransform = CGAffineTransform(rotationAngle: degrees) Pushing from the top can make a nice initial loading effect: (duration: 0.8)Ī simple fade is always elegant: (duration: 1.0)Īnd you can make your own transform, as fun or weird as you want by using CGAffineTransform: let degrees = sin(90.0 * CGFloat.pi/180.0) Let's look at some examples Animating from the left with a nice staggered effect: (duration: 0.5) TableFlip provides a few built-in defaults that work nicely out the box, if you don't want to make your own. (animation: m圜oolTableAnimation)Īnimations are completely customizable and configurable. (animation: m圜oolCellAnimation)Īnd if you want to animate the entire table view at once, the code will look like this: () If you want to animate every cell consecutively, the code will look like this. TableFlip takes the annoying nature of reloading UITableViews, maintaining state, and anminating, and minimizes it to two lines of code. The entire API for TableFlip consists of an animation, and a call to animate. So why not make animating UITableView cool?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |