iOS loading indicator
January 31, 2016

So I have decided to create another iOS loading indicator instead of the default iOS activity indicator, that is pretty useless and boring for a normal app. So I have wrote my ARSLineProgress iOS progress HUD. You can check out the source code and the ways to get it for your project here on my GitHub repository: ARSLineProgress.
Infinite | Success | Fail |
---|---|---|
![]() |
![]() |
![]() |
Usage
ARSLineProgress makes it easy to use it - you have
Showing
You can show progress indicator in two modes: infinite and progress. Infinite one will be shown until you hide it.
class func show()
class func showWithPresentCompetionBlock(block: () -> Void)
class func showOnView(view: UIView)
class func showOnView(view: UIView, completionBlock: () -> Void)
class func hide()
class func hideWithCompletionBlock(block: () -> Void)
Progress indicator will be shown until the
class func showWithProgressObject(progress: NSProgress)
class func showWithProgressObject(progress: NSProgress, completionBlock: (() -> Void)?)
class func showWithProgressObject(progress: NSProgress, onView: UIView)
class func showWithProgressObject(progress: NSProgress, onView: UIView, completionBlock: (() -> Void)?)
// Updating progress in case you are using on of the methods above:
class func updateWithProgress(value: CGFloat)
// initialValue should be from 0 to 100 in these methods
class func showWithProgress(initialValue value: CGFloat)
class func showWithProgress(initialValue value: CGFloat, completionBlock: (() -> Void)?)
class func showWithProgress(initialValue value: CGFloat, onView: UIView)
class func showWithProgress(initialValue value: CGFloat, onView: UIView, completionBlock: (() -> Void)?)
You are able to show just the 'success' checkmark or fail with these methods:
static func showSuccess()
static func showFail()
Hiding
Hiding progressHUD can be similar to what you have done so far with the infinite loader, or you could use these dedicated methods:
class func cancelPorgressWithFailAnimation(showFail: Bool)
class func cancelPorgressWithFailAnimation(showFail: Bool, completionBlock: (() -> Void)?)
Customization
You can customize progressHUD through the
Once you have changed your mind and you want to restore