Last active
January 31, 2019 06:51
-
-
Save mihirpmehta/081afd48ec940d1da1c2b879460ab408 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
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