Skip to content

Instantly share code, notes, and snippets.

@omayib
Created December 12, 2016 22:07
Show Gist options
  • Save omayib/a39e11a67189fc811065b48dfe1dfeed to your computer and use it in GitHub Desktop.
Save omayib/a39e11a67189fc811065b48dfe1dfeed to your computer and use it in GitHub Desktop.
an extension from UIViewController
import SJProgressHUD
class UIViewControllerExtension {
extension UIViewController {
func showWaiting(message: String){
SJProgressHUD.showWaiting(message)
}
func showError(message: String){
SJProgressHUD.showError(message)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment