ViewAnimator alternatives and similar libraries
Based on the "Animation" category.
Alternatively, view ViewAnimator alternatives based on common mentions on social networks and blogs.
-
lottie-ios
An iOS library to natively render After Effects vector animations -
SkeletonView
☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting -
IBAnimatable
Design and prototype customized UI, interaction, navigation, transition and animation for App Store ready Apps in Interface Builder with IBAnimatable. -
AnimatedCollectionViewLayout
A UICollectionViewLayout subclass that adds custom transitions/animations to the UICollectionView without effecting your existing code. -
spruce-ios
Swift library for choreographing animations on the screen. -
Presentation
:bookmark_tabs: Presentation helps you to make tutorials, release notes and animated pages. -
Gemini
Gemini is rich scroll based animation framework for iOS, written in Swift. -
EasyAnimation
A Swift library to take the power of UIView.animateWithDuration(_:, animations:...) to a whole new level - layers, springs, chain-able animations and mixing view and layer animations together! -
Fluid Slider
:octocat:💧 A slider widget with a popup bubble displaying the precise value selected. Swift UI library made by @Ramotion -
DKChainableAnimationKit
Easy to read and write chainable animations in Swift. -
YapAnimator
Your fast and friendly physics-based animation system. -
Interpolate
Swift interpolation for gesture-driven animations -
Sica
:deer: Simple Interface Core Animation. Run type-safe animation sequencially or parallelly -
ChainPageCollectionView
A custom View with fancy collectionView animation -
ZoomTransitioning
ZoomTransitioning provides a custom transition with image zooming animation and swiping the screen edge. -
navigation-toolbar
:octocat: Navigation toolbar is a slide-modeled UI navigation controller made by @Ramotion -
CAROUSEL
List a collection of items in a horizontally scrolling view. A scaling factor controls the size of the items relative to the center. -
FlightAnimator
Advanced Natural Motion Animations, Simple Blocks Based Syntax -
Garland View
:octocat: ≡ GarlandView seamlessly transitions between multiple lists of content. Swift UI library made by @Ramotion -
Animo
Bring life to CALayers with SpriteKit-like animation builders -
DSGradientProgressView
A simple animated progress bar in Swift -
SPPerspective
Widgets iOS 14 animation with 3D and dynamic shadow. Customisable transform and duration. -
TheAnimation
Type-safe CAAnimation wrapper. It makes preventing to set wrong type values. -
Walker
Each step you take reveals a new horizon. You have taken the first step today. -
SpriteKitEasingSwift
Better Easing for SpriteKit in Swift -
Poi
Poi makes you use card UI like tinder UI .You can use it like tableview method. -
DottedProgressBar
Simple and powerful animated progress bar with dots -
Numbers Animation
Numbers animation allows you to click on different numbers and accordingly it will animate numbers in a cool way. It has a very attractive UI and is very easy to use.
Appwrite - The open-source backend cloud platform
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ViewAnimator or a related project?
README
ViewAnimator is a library for building complex iOS UIView animations in an easy way. It provides one line animations for any view included the ones which contain other views like UITableView and UICollectionView with its cells or UIStackView with its arrangedSubviews.
Entire View UITableView UICollectionView
SVG animations inspired by Luke Zhao's project Hero
Complex Layouts
UI created by Messaki, make sure to check out his profile.
Logo and banner created by @cintia_ve
Installation
CocoaPods
ViewAnimator is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ViewAnimator"
Manual
Drop the swift files inside of ViewAnimator/Classes into your project.
Carthage
github "marcosgriselli/ViewAnimator"
Usage
ViewAnimator
provides a set of UIView
extensions to easily add custom animations to your views. From version 2.0.0
there are two ways to use this extension.
Self animating views
Views can animate theirselves calling .animate(animations: [Animation])
that's the most basic usage. Here's the full method that contains many default arguments:
func animate(animations: [Animation],
reversed: Bool = false,
initialAlpha: CGFloat = 0.0,
finalAlpha: CGFloat = 1.0,
delay: Double = 0,
duration: TimeInterval = ViewAnimatorConfig.duration,
usingSpringWithDamping dampingRatio: CGFloat = ViewAnimatorConfig.springDampingRatio,
initialSpringVelocity velocity: CGFloat = ViewAnimatorConfig.initialSpringVelocity,
completion: (() -> Void)? = nil)
Animating multiple views
ViewAnimator follows the UIKit animations API style with a static method UIView.animate(views: [UIView], animations: [Animation])
. This makes the library really easy to use and extensible to any kind of view. As the previous example, the method contains a lot of default arguments:
static func animate(views: [UIView],
animations: [Animation],
reversed: Bool = false,
initialAlpha: CGFloat = 0.0,
finalAlpha: CGFloat = 1.0,
delay: Double = 0,
animationInterval: TimeInterval = 0.05,
duration: TimeInterval = ViewAnimatorConfig.duration,
usingSpringWithDamping dampingRatio: CGFloat = ViewAnimatorConfig.springDampingRatio,
initialSpringVelocity velocity: CGFloat = ViewAnimatorConfig.initialSpringVelocity,
completion: (() -> Void)? = nil)
AnimationType
Direction
Direction
provides the axis where the animation should take place and its movement direction.
let animation = AnimationType.from(direction: .top, offset: 30.0)
view.animate(animations: [animation])
Zoom
Zoom in and Zoom out animation support.
let animation = AnimationType.zoom(scale: 0.5)
view.animate(animations: [animation])
Combined Animations
You can combine conformances of Animation
to apply multiple transforms on your animation block.
let fromAnimation = AnimationType.from(direction: .right, offset: 30.0)
let zoomAnimation = AnimationType.zoom(scale: 0.2)
let rotateAnimation = AnimationType.rotate(angle: CGFloat.pi/6)
UIView.animate(views: collectionView.visibleCells,
animations: [zoomAnimation, rotateAnimation],
duration: 0.5)
UIView.animate(views: tableView.visibleCells,
animations: [fromAnimation, zoomAnimation],
delay: 0.5)
Animation
Animation
protocol provides you the posibility of expanding the animations supported by ViewAnimator
with exception of the animateRandom
function.
public protocol Animation {
var initialTransform: CGAffineTransform { get }
}
UITableView/UICollection extensions
ViewAnimator comes with a set of handy extensions to make your animations in UITableView
and UICollectionView
a lot simpler. They both have access to cells in a section to animate easily.
They both expose a method visibleCells(in section: Int)
that returns an array of UITableViewCell
or UICollectionViewCell
.
let cells = tableView.visibleCells(in: 1)
UIView.animate(views: cells, animations: [rotateAnimation, fadeAnimation])
Mentions
- iOS Dev Weekly 323
- Natasha The Robot's Newsleter 147
- Top 10 Swift Articles October
- 30 Amazing iOS Swift Libraries (v2018)
Project Details
Requirements
- Swift 4.0
- Xcode 7.0+
- iOS 8.0+
Contributing
Feel free to collaborate with ideas 💭, issues ⁉️ and/or pull requests 🔃.
If you use ViewAnimator in your app I'd love to hear about it and feature your animation here!
Contributors
Author
Marcos Griselli | @marcosgriselli
License
ViewAnimator is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the ViewAnimator README section above
are relevant to that project's source code only.