-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,40 @@ | ||
# LiquidLoader | ||
LiquidLoader is the loader UI components with liquid animation, inspired by [Spinner Loader - Gooey light Effect](http:https://www.materialup.com/posts/spinner-loader-gooey-light-effect) | ||
|
||
[![CI Status](http:https://img.shields.io/travis/Takuma Yoshida/LiquidLoader.svg?style=flat)](https://travis-ci.org/Takuma Yoshida/LiquidLoader) | ||
[![Version](https://img.shields.io/cocoapods/v/LiquidLoader.svg?style=flat)](http:https://cocoapods.org/pods/LiquidLoader) | ||
[![License](https://img.shields.io/cocoapods/l/LiquidLoader.svg?style=flat)](http:https://cocoapods.org/pods/LiquidLoader) | ||
[![Platform](https://img.shields.io/cocoapods/p/LiquidLoader.svg?style=flat)](http:https://cocoapods.org/pods/LiquidLoader) | ||
|
||
## GrowCircle | ||
![GrowCircle](https://github.com/yoavlt/LiquidLoader/blob/master/Demo/grow-circle.gif?raw=true) | ||
|
||
## GrowLine | ||
![GrowLine](https://github.com/yoavlt/LiquidLoader/blob/master/Demo/grow-line.gif?raw=true) | ||
|
||
|
||
## Usage | ||
|
||
To run the example project, clone the repo, and run `pod install` from the Example directory first. | ||
```swift: | ||
let loader = LiquidLoader(frame: loaderFrame, effect: .GrowCircle(circleColor)) | ||
view.addSubview(loader) | ||
``` | ||
|
||
## Requirements | ||
### Show/Hide | ||
|
||
```swift: | ||
loader.show() | ||
loader.hide() | ||
``` | ||
|
||
### Effect Type | ||
You can use the following effects. | ||
* .GrowCircle | ||
* .GrowLine | ||
* .Circle | ||
* .Line | ||
|
||
If you avoid grow effect, you should use `.Circle` and `.Line`. | ||
|
||
## Installation | ||
|
||
|
@@ -23,10 +45,6 @@ it, simply add the following line to your Podfile: | |
pod "LiquidLoader" | ||
``` | ||
|
||
## Author | ||
|
||
Takuma Yoshida, [email protected] | ||
|
||
## License | ||
|
||
LiquidLoader is available under the MIT license. See the LICENSE file for more info. |