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

[Cri] SignUp 첫 번째 화면 구현 #24

Open
wants to merge 10 commits into
base: Cri
Choose a base branch
from

Conversation

panther222128
Copy link

@panther222128 panther222128 commented Apr 5, 2021

쉬는 날에 PR 죄송합니다.

  • 정규표현식 활용
  • URLSession 사용
  • ID 중복 여부에 따른 Label 변화
  • Password 입력 조건 여부에 따른 Label 변화
  • Password 일치 여부에 따른 Label 변화
  • 사용자 이름 입력 여부에 따른 Label 변화
  • 입력 조건에 따라 버튼 활성 및 비활성

알고 있는 선에서 최대한 MVVM에 가깝게 디자인해보려고 노력했습니다. 그러나 아직까지 View, ViewModel, Model에 대한 이해가 부족할지도 모른다고 생각합니다. 여러 사례를 찾아봤으나 생각보다 다양했습니다. 우선 ViewController가 View와 ViewModel을 갖고 움직임에 따라 View를 Update하는 방향으로 하려고 했습니다. TextField에 사용자가 입력하면 ViewController에게 Delegation을 통해 알리고, ViewController가 View를 Update하는 흐름으로 작성했습니다. 조건이 모두 충족되었을 때 버튼이 활성화되는 것은 아직 구현하지 못했습니다.

뒤늦게 생각난 것이, 코드를 수정하면서 파일 사이에 왔다갔다 하는 움직임을 의식하고 진행했으면 어떤 흐름으로 구현되고 있는지 파악하면서 진행했을텐데, 그렇지 못한 점이 아쉬웠습니다.

또한, View의 스토리보드 활용과 코드 작성 사이에서 생각한 부분인데, 스토리보드로 할 것이라면 완전히 스토리보드로 하고 코드로 하려면 완전히 코드로 해야겠다는 생각이 들었습니다. 협업 시 어느 부분은 스토리보드에서 작성하고 어느 부분은 코드로 작성해 섞여있다면 혼란을 초래할 것 같습니다.

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.

1 participant