From fccbff90b72012f0957ad72b240cd50bb43af9f3 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Wed, 30 Oct 2024 15:22:10 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=EB=B0=A9=20-=20?= =?UTF-8?q?=EB=A3=B0=EB=A0=9B=EC=84=A4=EC=A0=95,=20=EB=A3=B0=EB=A0=9B,=20?= =?UTF-8?q?=ED=9B=84=EC=9B=90=20=EB=B2=84=ED=8A=BC=20=ED=84=B0=EC=B9=98?= =?UTF-8?q?=EC=8B=9C=20=ED=82=A4=EB=B3=B4=EB=93=9C=EA=B0=80=20=EB=82=B4?= =?UTF-8?q?=EB=A0=A4=EA=B0=80=EB=8F=84=EB=A1=9D=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Live/Room/V2/LiveRoomViewV2.swift | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) 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 + } + } ) }