Skip to content

Instantly share code, notes, and snippets.

@mihirpmehta
Last active January 31, 2019 06:51
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/081afd48ec940d1da1c2b879460ab408 to your computer and use it in GitHub Desktop.
Save mihirpmehta/081afd48ec940d1da1c2b879460ab408 to your computer and use it in GitHub Desktop.
let configuration:ActivityConfiguration = ActivityConfiguration(indicatorColor: UIColor.orange, indicatorColorWithMessage: UIColor.red, backgroundColor: UIColor.green, messageTextColor: UIColor.white, indicatorBackGroundColor: UIColor.black)
self.showActivityIndicator(isHidden: false, message: "With great power comes great responsibility",configuration: configuration)
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
self.hideActivityIndicator()
self.showActivityIndicator(configuration: configuration)
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