Skip to content
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

Merged
merged 5 commits into from Jun 21, 2018
Merged

Feature/demo v2 #15

merged 5 commits into from Jun 21, 2018

Conversation

donikv
Copy link
Contributor

@donikv donikv commented Jun 8, 2018

No description provided.

@donikv donikv requested review from Truba and fgulan June 8, 2018 07:07
@@ -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!
Copy link
Member

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() {
Copy link
Member

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() {
Copy link
Member

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() {
Copy link
Member

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
Copy link
Member

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() {
Copy link
Member

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() {
Copy link
Member

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() {
Copy link
Member

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) {
Copy link
Member

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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be private.

@Truba Truba merged commit 6b27441 into master Jun 21, 2018
@fgulan fgulan deleted the feature/demo_v2 branch July 11, 2018 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants