New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/demo v2 #15
Feature/demo v2 #15
Conversation
@@ -24,7 +24,8 @@ final class LoginViewController: UIViewController { | |||
|
|||
@IBOutlet private weak var loginButton: UIButton! | |||
@IBOutlet private weak var loginButtonBottomMargin: NSLayoutConstraint! | |||
|
|||
@IBOutlet weak var registerButton: UIButton! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private outlet.
|
||
// MARK: Private | ||
|
||
private func registerForKeyboardNotifications() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use underscore for private funcs,
@@ -52,6 +53,10 @@ final class LoginViewController: UIViewController { | |||
) | |||
} | |||
|
|||
@IBAction func registerButtonActionHandler() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private.
@IBAction func registerButtonActionHandler() { | ||
presenter.didSelectRegisterAction() | ||
} | ||
|
||
@IBAction func tapGestureRecognizerActionHandler() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private.
private var _interactor: RegisterInteractorInterface | ||
private var _wireframe: RegisterWireframeInterface | ||
|
||
private let _authorizationManager = AuthorizationAdapter.shared |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a better practise to inject this things.
|
||
// MARK: Actions | ||
|
||
@IBAction func registerButtonActionHandler() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private.
presenter.didSelectRegisterAction(with: usernameTextField.text, email: emailTextField.text, password: passwordTextField.text, confirmedPassword: confirmPasswordTextField.text) | ||
} | ||
|
||
@IBAction func tapGestureRecognizerActionHandler() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private.
view.endEditing(true) | ||
} | ||
|
||
@IBAction func closeButtonActionHandler() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private.
) | ||
} | ||
|
||
@objc func keyboardWillShow(_ notification: Notification) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private.
} | ||
} | ||
|
||
@objc func keyboardWillHide(_ notification: Notification) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be private.
No description provided.