[FEAT/#12] 마이크 버튼과 TapPublisher를 구현했습니다. #13
Merged
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.
🤔 배경
📃 작업 내역
UIControl의controlPublisher()구현UIControl의Event중.touchUpInside를 감지하는tapPublisher를UIButton에 확장PTGMicButton구현✅ 리뷰 노트
PTGMicButton은 기본적으로 아래와 같은 프로퍼티와 메서드를 갖습니다.micState는on/off상태를 가지며toggleMicState()를 통해 각 state에 맞게 적절한 UI를 변경할 수 있습니다.tapPublisher를 구현하였습니다.controlPublisher()를 통해UIControl.Event를 구독할 수 있습니다.UIControl.Event의 경우 범용적으로 많이 사용될 가능성이 있어 public으로 열어뒀습니다.🎨 스크린샷
🚀 테스트 방법