Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 924 Bytes

README.md

File metadata and controls

32 lines (26 loc) · 924 Bytes

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)
}