Skip to content

AdamEsgie/SwiftLoadingAnimation

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 LoadAnimation folder to your project

  3. Initialize the object and set the circle size

    var loading = LoadingView()

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

    loading.showAtCenterPointWithSize(CGPoint:CGSize:)

  5. If you desire opacity, specify starting #

    loading.addStartingOpacity(CGFloat)

  6. When ready, begin animation

    loading.startLoading()

  7. When ready, end animation

    loading.stopLoading()

  8. 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

Loading Animation written in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages