https://github.com/guidosette/gfloadinganimationview
Simple loading animation view to block UI.
https://github.com/guidosette/gfloadinganimationview
cocoapods ios loader loading loading-animations loading-indicator loading-spinner objective-c progress-circle
Last synced: 2 months ago
JSON representation
Simple loading animation view to block UI.
- Host: GitHub
- URL: https://github.com/guidosette/gfloadinganimationview
- Owner: guidosette
- License: mit
- Created: 2019-09-22T13:55:05.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T20:24:07.000Z (over 6 years ago)
- Last Synced: 2025-03-05T17:18:39.573Z (about 1 year ago)
- Topics: cocoapods, ios, loader, loading, loading-animations, loading-indicator, loading-spinner, objective-c, progress-circle
- Language: Objective-C
- Homepage:
- Size: 2.64 MB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GFLoadingAnimationView
[](https://travis-ci.org/guidosette/GFLoadingAnimationView)
[](https://cocoapods.org/pods/GFLoadingAnimationView)
[](https://cocoapods.org/pods/GFLoadingAnimationView)
[](https://cocoapods.org/pods/GFLoadingAnimationView)
## Example


Simple loading animation view to block UI. Easy to use and configurable.
You can also use GFLoadingPercentualView to show a loading with percentual status.
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Installation
GFLoadingAnimationView is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'GFLoadingAnimationView'
```
## How to use
GFLoadingAnimationView
#import "GFLoadingAnimationView.h"
// show
[GFLoadingAnimationView showLoadingView];
// hide
[GFLoadingAnimationView hideLoadingView];
GFLoadingPercentualView
#import "GFLoadingPercentualView.h"
// show
[GFLoadingPercentualView showLoadingView];
// hide
[GFLoadingPercentualView hideLoadingView];
## Settings
GFLoadingAnimationView
// background
[GFLoadingAnimationView setCircleSize:100];
[GFLoadingAnimationView setCircleBackgroundColor:[UIColor groupTableViewBackgroundColor]];
// spinner
[GFLoadingAnimationView setSpinnerStrokeColor:[UIColor grayColor]];
[GFLoadingAnimationView setSpinnerStrokeWidth:3];
// image
[GFLoadingAnimationView setImageSizePerc:0.4];
[GFLoadingAnimationView setImage:[UIImage imageNamed:@"test"]];
GFLoadingPercentualView
// background
[GFLoadingAnimationView setCircleSize:100];
[GFLoadingAnimationView setCircleBackgroundColor:[UIColor groupTableViewBackgroundColor]];
// spinner
[GFLoadingAnimationView setSpinnerStrokeColor:[UIColor grayColor]];
[GFLoadingAnimationView setSpinnerStrokeWidth:3];
// image
[GFLoadingAnimationView setImageSizePerc:0.4];
[GFLoadingAnimationView setImage:[UIImage imageNamed:@"test"]];
// label
[GFLoadingPercentualView setLabelFontSize:20];
[GFLoadingPercentualView showLabel:false];
## Author
Guido Fanfani, guido.fanfani7@gmail.com
## License
GFLoadingAnimationView is available under the MIT license. See the LICENSE file for more info.