Skip to content

Commit

Permalink
Merge branch 'main' into feat/#384
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanMinsung committed Dec 22, 2024
2 parents 721eaff + add1fc1 commit 5962eae
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ extension ORBCharacterChatViewController {
}

@objc private func shrinkChatBox() {
stopAutoHide()
rootView.characterChatBox.shrink()
}

Expand Down Expand Up @@ -161,6 +162,21 @@ extension ORBCharacterChatViewController {
self.rootView.keyboardBackgroundView.isHidden = isTransparent
}).disposed(by: disposeBag)

rootView.characterChatBox.chevronImageButton.rx.controlEvent(.touchDown).bind(onNext: { [weak self] in
guard let self else { return }
self.stopAutoHide()
}).disposed(by: disposeBag)

rootView.characterChatBox.chevronImageButton.rx.controlEvent([.touchUpInside, .touchUpOutside])
.bind(onNext: { [weak self] in
guard let self else { return }
let hasReplyButton = self.rootView.characterChatBox.mode == .withReplyButtonShrinked
|| self.rootView.characterChatBox.mode == .withReplyButtonExpanded
if hasReplyButton {
self.restartAutoHide()
}
}).disposed(by: disposeBag)

rootView.characterChatBox.chevronImageButton.rx.tap.bind { [weak self] in
guard let self else { return }
if self.rootView.characterChatBox.mode == .withReplyButtonShrinked {
Expand Down

0 comments on commit 5962eae

Please sign in to comment.