[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6765":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":16,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":23,"hasPages":21,"topics":24,"createdAt":10,"pushedAt":10,"updatedAt":34,"readmeContent":35,"aiSummary":36,"trendingCount":16,"starSnapshotCount":16,"syncStatus":37,"lastSyncTime":38,"discoverSource":39},6765,"ViewAnimator","marcosgriselli\u002FViewAnimator","marcosgriselli","ViewAnimator brings your UI to life with just one line","",null,"Swift",7326,487,107,7,0,1,3,64.87,"MIT License",false,"master",true,[25,26,27,28,29,30,31,32,33],"animations","ios","swift","ui","uicollectionview","uikit","uistackview","uitableview","uiview","2026-06-12 04:00:30","\u003Cp align=\"center\">\n\u003Cimg src=\".\u002FResources\u002Fbanner_new.svg\"\u002F>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FSwift-4.2-orange.svg\" \u002F>\n        \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPlatforms-iOS%20%7C%20tvOS-blue.svg?style=flat\" \u002F>\n        \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fdt\u002FViewAnimator.svg?style=flat\"\u002F>\n    \u003Ca href=\"https:\u002F\u002Fcocoapods.org\u002Fpods\u002FViewAnimator\">\n        \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fv\u002FViewAnimator.svg\" alt=\"CocoaPods\" \u002F>\n    \u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002FCarthage\u002FCarthage\">\n        \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fcarthage-compatible-4BC51D.svg?style=flat\" alt=\"Carthage\" \u002F>\n    \u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fcodebeat.co\u002Fprojects\u002Fgithub-com-marcosgriselli-viewanimator-master\">\n      \u003Cimg src=\"https:\u002F\u002Fcodebeat.co\u002Fbadges\u002F633fb33d-66b6-4034-93c0-0f52c5d0e15c\" alt=\"Codebeat\" \u002F>\n    \u003C\u002Fa>\n    \u003Ca href=\"https:\u002F\u002Fopensource.org\u002Flicenses\u002FMIT\">\n      \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fcocoapods\u002Fl\u002FViewAnimator.svg?style=flat\" alt=\"License\" \u002F>\n    \u003C\u002Fa>\n\u003C\u002Fp>\n\n**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.\n\n### Entire View&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UITableView&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;UICollectionView\n\u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fmarcosgriselli\u002FViewAnimator@cf065e96ac34c924710dd84c718ecd3be179ae37\u002FResources\u002FentireView.svg\"\u002F>&nbsp;&nbsp;&nbsp;&nbsp;\n\u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fmarcosgriselli\u002FViewAnimator@cf065e96ac34c924710dd84c718ecd3be179ae37\u002FResources\u002Fhorizontal.svg\"\u002F>&nbsp;&nbsp;&nbsp;&nbsp;\n\u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fmarcosgriselli\u002FViewAnimator@cf065e96ac34c924710dd84c718ecd3be179ae37\u002FResources\u002Fvertical.svg\"\u002F>&nbsp;&nbsp;&nbsp;&nbsp;\n\u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fmarcosgriselli\u002FViewAnimator@cf065e96ac34c924710dd84c718ecd3be179ae37\u002FResources\u002Fcollection.svg\"\u002F>&nbsp;&nbsp;&nbsp;&nbsp;\n\u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fmarcosgriselli\u002FViewAnimator@cf065e96ac34c924710dd84c718ecd3be179ae37\u002FResources\u002FcollectionX.svg\"\u002F>\n\nSVG animations inspired by [Luke Zhao's](http:\u002F\u002Flkzhao.com) project [Hero](https:\u002F\u002Fgithub.com\u002Flkzhao\u002FHero\u002Fblob\u002Fmaster\u002FREADME.md)\n\n### Complex Layouts\n\u003Cimage src=\"https:\u002F\u002Fcdn.dribbble.com\u002Fusers\u002F702789\u002Fscreenshots\u002F3816087\u002Fpreview-messaki.gif\" width=\"400\"\u002F>\n\nUI created by [Messaki](https:\u002F\u002Fdribbble.com\u002Fmessaki), make sure to check out his profile.\n\n*Logo and banner created by [@cintia_ve](https:\u002F\u002Ftwitter.com\u002Fcintia_ve)*\n\n## Installation\n\n### CocoaPods\n\nViewAnimator is available through [CocoaPods](http:\u002F\u002Fcocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"ViewAnimator\"\n```\n\n### Manual\n\nDrop the swift files inside of [ViewAnimator\u002FClasses](https:\u002F\u002Fgithub.com\u002Fmarcosgriselli\u002FViewAnimator\u002Ftree\u002Fmaster\u002FViewAnimator\u002FClasses) into your project.\n\n### Carthage \n\n```\ngithub \"marcosgriselli\u002FViewAnimator\"\n```\n\n## Usage\n\n`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. \n\n### Self animating views\n\nViews can animate theirselves calling `.animate(animations: [Animation])` that's the most basic usage. Here's the full method that contains many default arguments: \n\n```swift\nfunc animate(animations: [Animation],\n             reversed: Bool = false,\n             initialAlpha: CGFloat = 0.0,\n             finalAlpha: CGFloat = 1.0,\n             delay: Double = 0,\n             duration: TimeInterval = ViewAnimatorConfig.duration,\n             usingSpringWithDamping dampingRatio: CGFloat = ViewAnimatorConfig.springDampingRatio,\n             initialSpringVelocity velocity: CGFloat = ViewAnimatorConfig.initialSpringVelocity,\n             completion: (() -> Void)? = nil)\n``` \n\n### Animating multiple views \n\nViewAnimator 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: \n\n```swift\nstatic func animate(views: [UIView],\n                    animations: [Animation],\n                    reversed: Bool = false,\n                    initialAlpha: CGFloat = 0.0,\n                    finalAlpha: CGFloat = 1.0,\n                    delay: Double = 0,\n                    animationInterval: TimeInterval = 0.05,\n                    duration: TimeInterval = ViewAnimatorConfig.duration,\n                    usingSpringWithDamping dampingRatio: CGFloat = ViewAnimatorConfig.springDampingRatio,\n                    initialSpringVelocity velocity: CGFloat = ViewAnimatorConfig.initialSpringVelocity,\n                    completion: (() -> Void)? = nil)\n```\n\n### AnimationType\n\n#### Direction\n`Direction` provides the axis where the animation should take place and its movement direction.\n\n```swift\nlet animation = AnimationType.from(direction: .top, offset: 30.0)\nview.animate(animations: [animation])\n```\n\n#### Zoom\nZoom in and Zoom out animation support.\n\n```swift\nlet animation = AnimationType.zoom(scale: 0.5)\nview.animate(animations: [animation])\n```\n\n### Combined Animations\n\nYou can combine conformances of `Animation` to apply multiple transforms on your animation block. \n\n```swift \nlet fromAnimation = AnimationType.from(direction: .right, offset: 30.0)\nlet zoomAnimation = AnimationType.zoom(scale: 0.2)\nlet rotateAnimation = AnimationType.rotate(angle: CGFloat.pi\u002F6)\nUIView.animate(views: collectionView.visibleCells,\n               animations: [zoomAnimation, rotateAnimation],\n               duration: 0.5)\nUIView.animate(views: tableView.visibleCells,\n               animations: [fromAnimation, zoomAnimation], \n               delay: 0.5)\n\n```\n\n## Animation\n\n`Animation` protocol provides you the posibility of expanding the animations supported by `ViewAnimator` with exception of the `animateRandom` function.\n\n```swift \npublic protocol Animation {\n    var initialTransform: CGAffineTransform { get }\n}\n```\n\n## UITableView\u002FUICollection extensions\n\nViewAnimator 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. \n\nThey both expose a method `visibleCells(in section: Int)` that returns an array of `UITableViewCell` or `UICollectionViewCell`.\n\n```swift\nlet cells = tableView.visibleCells(in: 1)\nUIView.animate(views: cells, animations: [rotateAnimation, fadeAnimation])\n``` \n\n## Mentions\n\n- [iOS Dev Weekly 323](http:\u002F\u002Fiosdevweekly.com\u002Fissues\u002F323#start)\n- [Natasha The Robot's Newsleter 147](https:\u002F\u002Fswiftnews.curated.co\u002Fissues\u002F147#start)\n- [Top 10 Swift Articles October](https:\u002F\u002Fmedium.mybridge.co\u002Fswift-top-10-articles-for-the-past-month-v-oct-2017-4e0f1bd031e8)\n- [30 Amazing iOS Swift Libraries (v2018)](https:\u002F\u002Fmedium.mybridge.co\u002F30-amazing-ios-swift-libraries-for-the-past-year-v-2018-7cf15027eee9)\n\n\n## Project Details\n\n### Requirements\n* Swift 4.0\n* Xcode 7.0+\n* iOS 8.0+\n\n### Contributing\nFeel free to collaborate with ideas 💭, issues ⁉️ and\u002For pull requests 🔃.\n\nIf you use ViewAnimator in your app I'd love to hear about it and feature your animation here!\n\n### Contributors\n\n[![](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Fimages\u002F0)](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Flinks\u002F0)[![](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Fimages\u002F1)](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Flinks\u002F1)[![](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Fimages\u002F2)](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Flinks\u002F2)[![](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Fimages\u002F3)](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Flinks\u002F3)[![](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Fimages\u002F4)](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Flinks\u002F4)[![](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Fimages\u002F5)](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Flinks\u002F5)[![](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Fimages\u002F6)](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Flinks\u002F6)[![](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Fimages\u002F7)](https:\u002F\u002Fsourcerer.io\u002Ffame\u002Fmarcosgriselli\u002Fmarcosgriselli\u002FViewAnimator\u002Flinks\u002F7)\n\n### Author\n\nMarcos Griselli | \u003Ca href=\"url\">\u003Cimg src=\"https:\u002F\u002Fcdn.jsdelivr.net\u002Fgh\u002Fmarcosgriselli\u002FViewAnimator@cf065e96ac34c924710dd84c718ecd3be179ae37\u002FResources\u002FtwitterLogo.svg\" height=\"17\">\u003C\u002Fa> [@marcosgriselli](https:\u002F\u002Ftwitter.com\u002Fmarcosgriselli)\n\n\n[![Twitter Follow](https:\u002F\u002Fimg.shields.io\u002Ftwitter\u002Ffollow\u002Fmarcosgriselli.svg?style=social)](https:\u002F\u002Ftwitter.com\u002Fmarcosgriselli)\n\n[![Twitter Follow](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Ffollowers\u002Fmarcosgriselli.svg?style=social&label=Follow)](https:\u002F\u002Fgithub.com\u002Fmarcosgriselli)\n\n### License\n\nViewAnimator is available under the MIT license. See the [LICENSE](https:\u002F\u002Fgithub.com\u002Fmarcosgriselli\u002FViewAnimator\u002Fblob\u002Fmaster\u002FLICENSE) file for more info.\n","ViewAnimator 是一个用于在 iOS 应用中轻松创建复杂 UIView 动画的库。它支持通过一行代码为任何视图添加动画效果，包括包含其他视图如 UITableView、UICollectionView 以及 UIStackView 的视图。该库采用 Swift 编写，具有简洁易用的 API 设计，并且兼容 CocoaPods 和 Carthage 两种依赖管理工具，方便集成到项目中。适用于需要提升用户界面交互体验的各种 iOS 应用场景，无论是简单的单个视图还是复杂的布局都能很好地支持。",2,"2026-06-11 03:08:45","top_language"]