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 LoadAnimation folder to your project
-
Initialize the object and set the circle size
var loading = LoadingView()
-
Add the object to a view in the desired position
loading.showAtCenterPointWithSize(CGPoint:CGSize:)
-
If you desire opacity, specify starting #
loading.addStartingOpacity(CGFloat)
-
When ready, begin animation
loading.startLoading()
-
When ready, end animation
loading.stopLoading()
-
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.
