SwingAnimation
小组件平移动画 | Widget on the Move, A Playful Animation
Install / Use
/learn @TopWidgets/SwingAnimationREADME
SwingAnimation
SwingAnimation is a framework allows you to apply smooth animations in widgets.
Example

content
.swingAnimation(duration: 4, direction: .horizontal, distance: 280)
.swingAnimation(duration: 1, direction: .vertical, distance: 60)
Requirements
- iOS 14.0+
- Swift 5.8+
Installation
Swift Package Manager
dependencies: [
.package(url: "https://github.com/TopWidgets/SwingAnimation.git", .upToNextMajor(from: "1.0.0"))
]
Try our App
<a href = "https://apps.apple.com/cn/app/Top-Widgets⁺/id6446477593"> <img src = "https://is1-ssl.mzstatic.com/image/thumb/Purple126/v4/90/e1/ed/90e1edd7-1c19-9b0c-2996-accda8cfddca/AppIcon-1x_U007ephone-85-220.png/246x0w.png" style = "width:100;height:100px;" /></a>Star History
License
SwingAnimation is available under the MIT license. See the LICENSE file for more info.
