Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dabing1022/DBMetaballLoading
A metaball loading written in Swift.
https://github.com/dabing1022/DBMetaballLoading
ios loading-animations swift ui-components
Last synced: 6 days ago
JSON representation
A metaball loading written in Swift.
- Host: GitHub
- URL: https://github.com/dabing1022/DBMetaballLoading
- Owner: dabing1022
- License: mit
- Created: 2016-05-16T14:02:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-19T09:25:52.000Z (about 1 year ago)
- Last Synced: 2024-04-29T03:45:03.438Z (8 months ago)
- Topics: ios, loading-animations, swift, ui-components
- Language: Swift
- Size: 269 KB
- Stars: 71
- Watchers: 6
- Forks: 13
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - DBMetaballLoading - A metaball loading written in Swift. (UI / Activity Indicator)
- awesome-ios-star - DBMetaballLoading - A metaball loading written in Swift. (UI / Activity Indicator)
README
# DBMetaballLoading
[![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)]()
![Support](https://img.shields.io/badge/support-iOS8%2B-brightgreen.svg)
[![Blog](https://img.shields.io/badge/blog-http%3A%2F%2Fdabing1022.github.io-blue.svg)](http://dabing1022.github.io)# Synopsis
A metaball loading written in Swift.
Special thanks to [dodola](https://github.com/dodola)'s [MetaballLoading](https://github.com/dodola/MetaballLoading), which is an android project. The animation is awesome! So I implement it in Swift, DBMetaballLoading's core algorithm is referenced by it's core algorithm.
# Preview
![](./DemoPreview.png)
# Usage Example
``` swift
let loadingView = DBMetaballLoadingView(frame: CGRect(x: 0, y: 100, width: 404, height: 50))
self.view.addSubview(loadingView)
```# Customizations
* fillColor: UIColor
* strokeColor: UIColor
* ballRadius: CGFloat
* maxDistance: CGFloat
* curveAngle: CGFloat
* handleLenRate: CGFloat
* spacing: spacing## Installation
#### CocoaPods
You can use CocoaPods to install `DBMetaballLoading` by adding it to your `Podfile`:```
platform :ios, '8.0'
use_frameworks!
pod 'DBMetaballLoading'
```#### Manually
1. Download and drop ```DBMetaballLoading/Source```folder in your project.
2. Congratulations!# Requirements
- iOS8+
- Swift5.0# Contribution
Please let me know if you like the library, or have any suggestions:]. I plan to maintain this library regularly. Any pull requests are welcome!
# License
DBMetaballLoading is available under the MIT license. See the LICENSE file for more info.