Skip to content

Instantly share code, notes, and snippets.

@omaralbeik
Created April 7, 2018 21:49
Show Gist options
  • Save omaralbeik/c7971164cb142dc3904243a88a7aed6c to your computer and use it in GitHub Desktop.
Save omaralbeik/c7971164cb142dc3904243a88a7aed6c to your computer and use it in GitHub Desktop.
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