Skip to content

Commit

Permalink
#297: Share Extension, 다른 앱에서 Share Extension으로 가져온 ExtensionItem값이 …
Browse files Browse the repository at this point in the history
…없는 경우(음악 정보 못가져온 경우) 딜레이없이 빠르게 관련 UI 렌더링
  • Loading branch information
joseph704 committed Aug 20, 2024
1 parent 9815fca commit 05566a4
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions StreetDrop/ShareExtension/View/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,11 @@ private extension ShareViewController {

output.goFailedLoadingMusicView
.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 = true
failedLoadingMusicView.isHidden = false
view.layoutIfNeeded()
})
owner.containerView.isHidden = true
owner.reSearchingMusicForSharingView.isHidden = true
owner.failedLoadingMusicView.isHidden = false
}
.disposed(by: disposeBag)

output.errorAlertShow
.bind(with: self) { owner, errorMessage in
Expand Down

0 comments on commit 05566a4

Please sign in to comment.