Cocoa Library that allows one to easily add a loading animation to any project.
The animation consists of three circles growing and shrinking in succession.
The library allows for customization of the size, color, speed of the animation/circles.
-
Download or clone the repo
-
Add the LoadAnimationLibrary folder to your project
-
Import the LoadingView.h into the appropriate location
-
Initialize the object and set the circle size
LoadingView *loading = [[LoadingView alloc] initWithCircleSize:6.0f];
-
Add the object to a view in the desired position
[loading showInView:self.view withCenterPoint:CGPointMake(self.size.width/2, self.size.height/2)];
-
If you desire opacity, specify starting #
[loading addStartingOpacity:0.5];
-
When ready, begin animation
[loading startAnimating];
-
When ready, end animation
[loading stopAnimating];
-
Hide/Show as desired
[loading hide];
Props to Matt Yu for design. This was created as a part of the Birdseye Mail email project.
loading-animation is available under the MIT license. See the LICENSE file for more info.