|
1 | 1 | # AASquaresLoading
|
2 | 2 | Simple loading animation using squares
|
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | +## Example |
| 7 | +```swift |
| 8 | + let loadingSquare = AASquaresLoading(target: self.view, size: 40) |
| 9 | + // Customize background |
| 10 | + loadingSquare.backgroundColor = UIColor.blackColor().colorWithAlphaComponent(0.4) |
| 11 | + // Customize color |
| 12 | + loadingSquare.color = UIColor.whiteColor() |
| 13 | + // Start loading |
| 14 | + loadingSquare.start() |
| 15 | + .... |
| 16 | + // Stop loading |
| 17 | + loadingSquare.stop() |
| 18 | +``` |
| 19 | + |
| 20 | +More examples in the demo project. |
| 21 | + |
| 22 | +## Installation |
| 23 | + |
| 24 | +### CocoaPods |
| 25 | + |
| 26 | +*Comming soon* |
| 27 | + |
| 28 | +### Manual |
| 29 | + |
| 30 | +1. Add `AASquaresLoading.swift`to your project |
| 31 | +2. That's all you can use it! |
| 32 | + |
| 33 | +## License |
| 34 | + |
| 35 | +The MIT License (MIT) |
| 36 | + |
| 37 | +Copyright (c) 2015 Anas AIT-ALI |
| 38 | + |
| 39 | +Permission is hereby granted, free of charge, to any person obtaining a copy |
| 40 | +of this software and associated documentation files (the "Software"), to deal |
| 41 | +in the Software without restriction, including without limitation the rights |
| 42 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 43 | +copies of the Software, and to permit persons to whom the Software is |
| 44 | +furnished to do so, subject to the following conditions: |
| 45 | + |
| 46 | +The above copyright notice and this permission notice shall be included in all |
| 47 | +copies or substantial portions of the Software. |
| 48 | + |
| 49 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 50 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 51 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 52 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 53 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 54 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 55 | +SOFTWARE. |
0 commit comments