Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
쉬는 날에 PR 죄송합니다.
알고 있는 선에서 최대한 MVVM에 가깝게 디자인해보려고 노력했습니다. 그러나 아직까지 View, ViewModel, Model에 대한 이해가 부족할지도 모른다고 생각합니다. 여러 사례를 찾아봤으나 생각보다 다양했습니다. 우선 ViewController가 View와 ViewModel을 갖고 움직임에 따라 View를 Update하는 방향으로 하려고 했습니다. TextField에 사용자가 입력하면 ViewController에게 Delegation을 통해 알리고, ViewController가 View를 Update하는 흐름으로 작성했습니다. 조건이 모두 충족되었을 때 버튼이 활성화되는 것은 아직 구현하지 못했습니다.
뒤늦게 생각난 것이, 코드를 수정하면서 파일 사이에 왔다갔다 하는 움직임을 의식하고 진행했으면 어떤 흐름으로 구현되고 있는지 파악하면서 진행했을텐데, 그렇지 못한 점이 아쉬웠습니다.
또한, View의 스토리보드 활용과 코드 작성 사이에서 생각한 부분인데, 스토리보드로 할 것이라면 완전히 스토리보드로 하고 코드로 하려면 완전히 코드로 해야겠다는 생각이 들었습니다. 협업 시 어느 부분은 스토리보드에서 작성하고 어느 부분은 코드로 작성해 섞여있다면 혼란을 초래할 것 같습니다.