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 Point
다음과 같이 PassthroughSubject를 활용하여 데이터 전달에 사용함.
다음과 같이 ViewController에서 구독하여 사용함
처음에는 다음의 첫번째 코드와 같이 viewModel를 선언해서 구현했지만 dataBind가 제대로 이루어지지 않음. 이유는 LoginViewController이랑 CreateNickNameViewController에서 생성되는 CreateNickNameViewModel 객체가 달라서 제대로 데이터 전달이 안된 것임.
따라서 CreateNickNameViewController를 객체로 선언할 때 CreateNickNameViewModel도 같이 초기화할 수 있게 해줌.
📸 스크린샷