Skip to content

AdamEsgie/loading-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

loading-animation

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.

example

For use:

  1. Download or clone the repo

  2. Add the LoadAnimationLibrary folder to your project

  3. Import the LoadingView.h into the appropriate location

  4. Initialize the object and set the circle size

    LoadingView *loading = [[LoadingView alloc] initWithCircleSize:6.0f];

  5. Add the object to a view in the desired position

    [loading showInView:self.view withCenterPoint:CGPointMake(self.size.width/2, self.size.height/2)];

  6. If you desire opacity, specify starting #

    [loading addStartingOpacity:0.5];

  7. When ready, begin animation

    [loading startAnimating];

  8. When ready, end animation

    [loading stopAnimating];

  9. Hide/Show as desired

    [loading hide];

Credits:

Props to Matt Yu for design. This was created as a part of the Birdseye Mail email project.

License:

loading-animation is available under the MIT license. See the LICENSE file for more info.

About

Cocoa Library for Three Circle Loading Animation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published