TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Tarun Tyagi.
Activity
is a UIView
subclass that creates a customizable loading activity indicator like control.
App Store
& Music
pod 'Activity'
Configuring Activity is as simple as :
Activity* activity = [[Activity alloc] initWithStyle:ActivityStyleAppStoreBlue];
activity.frame = CGRectMake(50, 50, 30, 30);
[self.view addSubview:activity];
[activity startAnimating];
Activity takes it over from here. You just need to know start/stop animating.
Activity comes with a property set for it's customization as needed :-
style
: Choose a style convenient to you from 'StyleActivity' enum
ringTintColor
: Color for ring displayed as loading circle
circulatorTintColor
: Color for small circulator traversing ring's circumference
ringThickness
: Thickness for Ring (Default : 1)
ringSize
: Diameter for Ring (Default : 28)
durationForOneRevolution
: Duration for completing one Revolution. (Default : 1)
Given that UIColor is capable of color patterns handling made from images,
Activity can be used to take advantage of this feature.
Demo app includes almost all of the property usages through a pretty basic example.
You can go through it to see these in action at first.