Created
January 29, 2019 07:02
-
-
Save mihirpmehta/01b12c3a5759bd6c176a4deaa1390f6e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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