Skip to content

Progress/Activity indicator with UIActivityIndicatorView, different themes(i.e light and dark).

Notifications You must be signed in to change notification settings

VasantHugar/VNHProgressIndicator

Repository files navigation

VNHProgressIndicator

Progress/Activity indicator with UIActivityIndicatorView, different themes(i.e light and dark).

There are several method

To show.

  • show()
  • show(onView view: UIView)
  • show(_ theme: ProgressIndicatorTheme)
  • show(onView view: UIView, theme: ProgressIndicatorTheme)
  • show(_ message: String)
  • show(_ message: String, theme: ProgressIndicatorTheme)
  • show(_ message: String, onView: UIView)
  • show(_ message: String, onView: UIView, theme: ProgressIndicatorTheme)

To hide.

  • hide()
  • hide(fromView view: UIView)

How to use?

  • Copy ProgressIndicator folder from demo project
  • Show: ProgressIndicator.show()
  • Hide: ProgressIndicator.hide()

Code

ProgressIndicator.show(onView: self.view, theme: .dark)
Request.getEmployees {
   ProgressIndicator.hide(fromView: self.view)
}

About

Progress/Activity indicator with UIActivityIndicatorView, different themes(i.e light and dark).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages