Skip to content

Instantly share code, notes, and snippets.

@mihirpmehta
Created January 29, 2019 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mihirpmehta/01b12c3a5759bd6c176a4deaa1390f6e to your computer and use it in GitHub Desktop.
Save mihirpmehta/01b12c3a5759bd6c176a4deaa1390f6e to your computer and use it in GitHub Desktop.
import DemoActivityIndicator
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.showActivityIndicator()
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
self.hideActivityIndicator()
self.showActivityIndicator(isHidden: false, message: "With great power comes great responsibility")
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
self.hideActivityIndicator()
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment