Skip to content

Commit

Permalink
#297: Share Extension, 음악 정보 불러오지 못했다는 UI의 '음악 검색하기'버튼 동작 추가
Browse files Browse the repository at this point in the history
- '음악 검색하기'버튼 클릭 시, 빈 테이블뷰의 재검색 화면으로 이동
  • Loading branch information
joseph704 committed Aug 20, 2024
1 parent 1ddc889 commit 7fde765
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions StreetDrop/ShareExtension/View/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,18 @@ private extension ShareViewController {
})
}
.disposed(by: disposeBag)

failedLoadingMusicView.searchingMusicButtonEvent
.bind(with: self) { owner, _ in
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3, execute: { [weak self] in
guard let self = self else { return }
containerView.isHidden = true
reSearchingMusicForSharingView.isHidden = false
failedLoadingMusicView.isHidden = true
view.layoutIfNeeded()
})
}
.disposed(by: disposeBag)
}

func bindViewModel() {
Expand Down

0 comments on commit 7fde765

Please sign in to comment.