diff --git a/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift b/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift index 5aae49c..21f8959 100644 --- a/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift +++ b/SodaLive/Sources/Live/Room/V2/LiveRoomViewV2.swift @@ -199,19 +199,34 @@ struct LiveRoomViewV2: View { LiveRoomRightBottomButton( imageName: "ic_donation_message_list", - onClick: { viewModel.isShowDonationMessagePopup = true } + onClick: { + DispatchQueue.main.async { + hideKeyboard() + viewModel.isShowDonationMessagePopup = true + } + } ) if liveRoomInfo.creatorId == UserDefaults.int(forKey: .userId) { LiveRoomRightBottomButton( imageName: "ic_roulette_settings", - onClick: { viewModel.isShowRouletteSettings = true } + onClick: { + DispatchQueue.main.async { + hideKeyboard() + viewModel.isShowRouletteSettings = true + } + } ) } else { if viewModel.isActiveRoulette { LiveRoomRightBottomButton( imageName: "ic_roulette", - onClick: { viewModel.showRoulette() } + onClick: { + DispatchQueue.main.async { + hideKeyboard() + viewModel.showRoulette() + } + } ) } } @@ -219,7 +234,12 @@ struct LiveRoomViewV2: View { if liveRoomInfo.creatorId != UserDefaults.int(forKey: .userId) { LiveRoomRightBottomButton( imageName: "ic_donation", - onClick: { viewModel.isShowDonationPopup = true } + onClick: { + DispatchQueue.main.async { + hideKeyboard() + viewModel.isShowDonationPopup = true + } + } ) }