{"id":2299,"url":"https://github.com/MengTo/Spring","last_synced_at":"2025-08-06T12:31:53.514Z","repository":{"id":25092454,"uuid":"28513398","full_name":"MengTo/Spring","owner":"MengTo","description":"A library to simplify iOS animations in Swift.","archived":false,"fork":false,"pushed_at":"2023-07-03T14:28:34.000Z","size":925,"stargazers_count":14084,"open_issues_count":165,"forks_count":1805,"subscribers_count":466,"default_branch":"master","last_synced_at":"2024-12-03T00:04:34.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://designcode.io","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MengTo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2014-12-26T14:57:02.000Z","updated_at":"2024-11-23T12:16:14.000Z","dependencies_parsed_at":"2023-10-20T22:45:11.535Z","dependency_job_id":null,"html_url":"https://github.com/MengTo/Spring","commit_stats":{"total_commits":189,"total_committers":38,"mean_commits":4.973684210526316,"dds":0.5925925925925926,"last_synced_commit":"50d92a5b9e08848387ae95bf44c6ad20834f7083"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MengTo%2FSpring","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MengTo%2FSpring/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MengTo%2FSpring/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MengTo%2FSpring/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MengTo","download_url":"https://codeload.github.com/MengTo/Spring/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228898278,"owners_count":17988651,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-01-05T20:16:10.214Z","updated_at":"2024-12-09T13:30:34.436Z","avatar_url":"https://github.com/MengTo.png","language":"Swift","readme":"## Updated for Swift 4.2\nRequires Xcode 10 and Swift 4.2.\n\n## Installation\nDrop in the Spring folder to your Xcode project (make sure to enable \"Copy items if needed\" and \"Create groups\").\n\nOr via CocoaPods:\n```\nuse_frameworks!\npod 'Spring', :git =\u003e 'https://github.com/MengTo/Spring.git'\n```\n\n## Usage with Storyboard\nIn Identity Inspector, connect the UIView to SpringView Class and set the animation properties in Attribute Inspector.\n\n![](http://cl.ly/image/241o0G1G3S36/download/springsetup.jpg)\n\n## Usage with Code\n    layer.animation = \"squeezeDown\"\n    layer.animate()\n\n## Demo The Animations\n![](http://cl.ly/image/1n1E2j3W3y24/springscreen.jpg)\n\n## Chaining Animations\n    layer.y = -50\n    animateToNext {\n      layer.animation = \"fall\"\n      layer.animateTo()\n    }\n\n## Functions\n    animate()\n    animateNext { ... }\n    animateTo()\n    animateToNext { ... }\n\n## Animation\n    shake\n    pop\n    morph\n    squeeze\n    wobble\n    swing\n    flipX\n    flipY\n    fall\n    squeezeLeft\n    squeezeRight\n    squeezeDown\n    squeezeUp\n    slideLeft\n    slideRight\n    slideDown\n    slideUp\n    fadeIn\n    fadeOut\n    fadeInLeft\n    fadeInRight\n    fadeInDown\n    fadeInUp\n    zoomIn\n    zoomOut\n    flash\n\n## Curve\n    spring\n    linear\n    easeIn\n    easeOut\n    easeInOut\n\n## Properties\n    force\n    duration\n    delay\n    damping\n    velocity\n    repeatCount\n    scale\n    x\n    y\n    rotate\n\n\\* Not all properties work together. Play with the demo app.\n\n\n## Autostart\nAllows you to animate without code. Don't need to use this if you plan to start the animation in code.\n\n## Autohide\nSaves you the hassle of adding a line \"layer.alpha = 0\" in viewDidLoad().\n\n## Known issue\nAnimations won't autostart when view is reached via performSegueWithIdentifier.\n\n## Tutorials\n- Tutorials available on [Design+Code](https://designcode.io/swiftapp).\n- [Integrate Spring to existing Objective-C projects](https://medium.com/ios-apprentice/using-swift-in-objective-c-projects-f7e7a09f8be)\n\n## ChangeLog\n- At [ChangeLog](https://github.com/MengTo/Spring/wiki/CHANGELOG) wiki page\n\n## License\n\nSpring is released under the MIT license. See LICENSE for details.\n","funding_links":[],"categories":["UI","Libs","Swift","Animations","Animation","HarmonyOS","Animation [🔝](#readme)","Minor"],"sub_categories":["Animation","Other free courses","Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMengTo%2FSpring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMengTo%2FSpring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMengTo%2FSpring/lists"}