Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gontovnik/DGActivityIndicatorView
DGActivityIndicatorView is a great way to make loading spinners in your application look nicer. It contains 32 different indicator view styles.
https://github.com/gontovnik/DGActivityIndicatorView
Last synced: 3 months ago
JSON representation
DGActivityIndicatorView is a great way to make loading spinners in your application look nicer. It contains 32 different indicator view styles.
- Host: GitHub
- URL: https://github.com/gontovnik/DGActivityIndicatorView
- Owner: gontovnik
- License: mit
- Created: 2015-05-30T19:42:10.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-18T06:36:43.000Z (almost 4 years ago)
- Last Synced: 2024-10-30T00:30:27.240Z (4 months ago)
- Language: Objective-C
- Homepage:
- Size: 5.8 MB
- Stars: 1,801
- Watchers: 47
- Forks: 290
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DGActivityIndicatorView
DGActivityIndicatorView is a great way to make loading spinners in your application look nicer. It contains 32 different indicator view styles. Inspired by: http://connoratherton.com/loaders
## Requirements
* Xcode 6 or higher
* Apple LLVM compiler
* iOS 8.0 or higher (May work on previous versions, just did not testit. Feel free to edit it).
* ARC## Demo
Open and run the DGActivityIndicatorExample project in Xcode to see DGActivityIndicatorView in action.
## Installation
### CocoaPods
Install CocoaPods if it is not installed yet:
``` bash
$ [sudo] gem install cocoapods
$ pod setup
```Add DGActivityIndicatorView to Podfile:
``` bash
pod 'DGActivityIndicatorView'
```Call 'pod install':
``` bash
pod install
```### Manual install
All you need to do is drop DGActivityIndicatorView folder into your project and include headers.
## Example usage
``` objective-c
DGActivityIndicatorView *activityIndicatorView = [[DGActivityIndicatorView alloc] initWithType:DGActivityIndicatorAnimationTypeDoubleBounce tintColor:[UIColor whiteColor] size:20.0f];
activityIndicatorView.frame = CGRectMake(0.0f, 0.0f, 50.0f, 50.0f);
[self.view addSubview:activityIndicatorView];
[activityIndicatorView startAnimating];
```## TODO
* Add more different animations
## Contact
Danil Gontovnik
- https://github.com/gontovnik
- https://twitter.com/gontovnik
- http://gontovnik.com/
- [email protected]## License
The MIT License (MIT)
Copyright (c) 2015 Danil Gontovnik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.