Skip to content

Instantly share code, notes, and snippets.

@rajajawahar
Last active May 29, 2018 00:13
Show Gist options
  • Save rajajawahar/1b3c1b0e8c10b94723036ba9a4275289 to your computer and use it in GitHub Desktop.
Save rajajawahar/1b3c1b0e8c10b94723036ba9a4275289 to your computer and use it in GitHub Desktop.
class LoginViewController: UIViewController,LoginView {
var loginPresenter : LoginPresenter?
override func viewDidLoad() {
super.viewDidLoad()
loginPresenter = LoginPresenter()
loginPresenter?.attachView(view: self)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
func showError(message: String) {
// Show Error if there is any problem with validation
}
func showLoading() {
//Show the progress bar while signingin
}
func hideLoading() {
//hide the progress bar after validation
}
func showMessage(message: String){
}
func navigateToHome() {
// Navigate to Home
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment