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: 3 months 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-21T09:52:07.000Z (12 months ago)
- Last Synced: 2024-07-17T15:01:39.358Z (4 months ago)
- Topics: animation, ios, swift, topwidgets, widgetkit
- Language: Swift
- Homepage:
- Size: 734 KB
- Stars: 753
- Watchers: 4
- Forks: 101
- 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.