Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TopWidgets/SwingAnimation
小组件平移动画 | Widget on the Move, A Playful Animation
https://github.com/TopWidgets/SwingAnimation
animation ios swift topwidgets widgetkit
Last synced: about 1 month ago
JSON representation
小组件平移动画 | Widget on the Move, A Playful Animation
- Host: GitHub
- URL: https://github.com/TopWidgets/SwingAnimation
- Owner: TopWidgets
- License: mit
- Created: 2023-08-21T02:08:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-21T09:52:07.000Z (about 1 year ago)
- Last Synced: 2024-08-04T04:09:25.146Z (5 months ago)
- Topics: animation, ios, swift, topwidgets, widgetkit
- Language: Swift
- Homepage:
- Size: 734 KB
- Stars: 756
- Watchers: 4
- Forks: 103
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SwingAnimation
[![SPM](https://img.shields.io/badge/SPM-supported-DE5C43.svg?style=flat)](https://swift.org/package-manager/)
![CI](https://github.com/TopWidgets/SwingAnimation/actions/workflows/push.yml/badge.svg)**SwingAnimation** is a framework allows you to apply smooth animations in widgets.
## Example
![Demo](./Demo.gif)
```swift
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
```swift
dependencies: [
.package(url: "https://github.com/TopWidgets/SwingAnimation.git", .upToNextMajor(from: "1.0.0"))
]
```## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=TopWidgets/SwingAnimation&type=Date)](https://star-history.com/#TopWidgets/SwingAnimation&Date)
## License
**SwingAnimation** is available under the MIT license. See the LICENSE file for more info.