forked from dnd-side-project/dnd-12th-1-iOS
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
📝 이슈 요약
- delegate 대신 Rx의 Relay/Signal 스트림으로 UI 이벤트를 전달
✅ TODOs
- CompletePage delegate 제거
- DogetherButton에 PublishRelay 추가 (tap 이벤트 방출)
- CompletePage에서 Signal로 이벤트 노출
- CompleteViewController에서 emit(onNext:)로 구독하도록 수정
- 기존 delegate 관련 코드 및 프로토콜 제거
🧐 추가 설명
- 기존 delegate 방식은 이벤트가 많아질수록
프로토콜 선언, 구현부 연결, 각 메서드 전달 과정이 반복되어 유지보수가 번거로웠습니다.
이러한 복잡성을 줄이기 위해 delegate 대신 Rx의 PublishRelay / Signal 스트림으로 UI 이벤트를 전달하도록 변경했습니다.
이 방식은 각 버튼이나 뷰에서 발생한 이벤트를 Relay로 방출하고,
View에서는 Signal 형태로 외부에 노출,
ViewController에서는 emit(onNext:)로 구독하는 구조로,
코드 연결이 단순하고 일관성 있는 단방향 이벤트 흐름을 유지할 수 있습니다.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
🛠️ refactor코드 리팩토링코드 리팩토링
Type
Projects
Status
📚 Todo