Skip to content

Commit

Permalink
#297: Share ViewController에서 다른 화면 갈때, 키보드 내리기
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph704 committed Aug 20, 2024
1 parent 581983a commit 7f9d9e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion StreetDrop/ShareExtension/View/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,7 @@ private extension ShareViewController {

output.showReSearchedMusicList
.bind(with: self) { owner, musicList in
owner.endEditing()
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3, execute: { [weak self] in
guard let self = self else { return }
containerView.isHidden = true
Expand All @@ -397,7 +398,8 @@ private extension ShareViewController {
.disposed(by: disposeBag)

output.goDropDoneView
.bind(onNext: { (droppedMusic, droppedAddress, droppedComment) in
.bind(onNext: { [weak self] (droppedMusic, droppedAddress, droppedComment) in
self?.endEditing()
DispatchQueue.main.asyncAfter(deadline: .now() + 0.3, execute: { [weak self] in
guard let self = self else { return }
containerView.isHidden = true
Expand Down

0 comments on commit 7f9d9e6

Please sign in to comment.