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

5. domaća zadaća #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

5. domaća zadaća #3

wants to merge 1 commit into from

Conversation

sugar-king
Copy link
Owner

No description provided.

import UIKit

extension LoginController {
override func viewWillAppear(_ animated: Bool) {

Choose a reason for hiding this comment

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

It's not really a good practice to have life cycle methods (viewDidLoad, viewDidAppear etc.) outside of the original file. Especially not to have a few here and a few there. You could extract this code into a separate method, e.g. prepareForAnimations(), and have that be in this extension and call it from viewWillAppear in the original file.

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.

2 participants