Skip to content

Commit

Permalink
✨ 여기서 다시 검색 버튼이 여정 기록 중에 보여지던 문제 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
SwiftyJunnos committed Jan 10, 2024
1 parent 3409893 commit 0390082
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,10 @@ public final class HomeViewController: HomeBottomSheetViewController {

self.viewModel.state.isRefreshButtonHidden
.removeDuplicates(by: { $0 == $1 })
.combineLatest(self.viewModel.state.isRecording)
.receive(on: DispatchQueue.main)
.sink { [weak self] isHidden in
self?.refreshButton.isHidden = isHidden
.sink { [weak self] isHidden, isRecording in
self?.refreshButton.isHidden = (isHidden && !isRecording)
}
.store(in: &self.cancellables)

Expand Down

0 comments on commit 0390082

Please sign in to comment.