Created
April 7, 2018 21:49
-
-
Save omaralbeik/c7971164cb142dc3904243a88a7aed6c 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 UIKit | |
class LoginViewController: ViewController<LoginView> { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
customView.delegate = self | |
} | |
} | |
// MARK: - LoginViewDelegate | |
extension LoginViewController: LoginViewDelegate { | |
func loginView(_ view: LoginView, didTapLoginButton button: UIButton) { | |
print("Email Address: \(customView.emailAddress)") | |
print("Password: \(customView.password)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment