Skip to content

Commit

Permalink
#259: 드랍해보세요 코멘트 보이지 않는 이슈 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
thoonk committed Nov 23, 2023
1 parent 91c5818 commit 79656ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ final class MainViewController: UIViewController, Toastable {

private lazy var bubbleCommentView: BubbleCommentView = {
let view = BubbleCommentView()
view.configure(with: "음악을 드랍해보세요!")
view.isHidden = true
return view
}()
Expand Down Expand Up @@ -508,9 +509,8 @@ private extension MainViewController {
.disposed(by: disposeBag)

output.showFirstComment
.bind(with: self) { owner, comment in
.bind(with: self) { owner, _ in
owner.bubbleCommentView.isHidden = false
owner.bubbleCommentView.configure(with: comment)
}
.disposed(by: disposeBag)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ extension MainViewModel {
let musicWithinArea = BehaviorRelay<Musics>(value: [])
let cameraShouldGoCurrentLocation = PublishRelay<CLLocation>()
let tappedPOIIndex = PublishRelay<Int>()
let showFirstComment = PublishRelay<String>()
let showFirstComment = PublishRelay<Void>()
}
}

Expand Down Expand Up @@ -268,7 +268,7 @@ private extension MainViewModel {
func checkAppFirstLaunched(output: Output) {
let isLaunchedBefore = myInfoUseCase.checkLaunchedBefore()
if isLaunchedBefore == false {
output.showFirstComment.accept("음악을 드랍해보세요!")
output.showFirstComment.accept(Void())
}
}
}
Expand Down

0 comments on commit 79656ef

Please sign in to comment.