Open
Conversation
Open
Rudy-009
approved these changes
Jan 10, 2026
| // } | ||
| //} | ||
|
|
||
| extension UIScrollView { |
| // | ||
| //} | ||
|
|
||
| protocol SearchPeopleViewModelProtocol: InputOutputProtocol where Input == SearchPeopleViewModel.Input, Output == SearchPeopleViewModel.Output { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
✅ Check List
📌 Related Issue
📎 Work Description
ViewModel
이런식으로 ViewModelProtocol을 생성 후
View모델이 채택하게 함
Input은
enum으로 Output은struct로 했는데 Input도struct로 하면 괜찮을 수도 있을 거 같음Input 은
enum으로 선언했기 때문에 filter를 통해서 각각debounce와throttle은 걸어줌ViewController
Output을
struct로 선언했기 때문에 개별 스트림으로 구독이 가능함무한 스크롤 같은 경우는,
reachedBottomPublisher를 만들어서 사용함(
textDidChangePublisher를 만든 것과 비슷함)UICollectionView, UITableView 모두 UIScrollView 를 상속 받기 때문에
UIScrollView에 extension으로 만들어두어서 스크롤 가능한 어느 곳에서든 구독할 수 있다.승준이가 얘기했던 버벅이는 현상은
return offsetY > contentHeight - height - 100처럼미리 호출하는 방식으로 조금 해결했다.
📷 Screenshots
💬 To Reviewers