fix(live-room): 유지형 다이얼로그 표시 시 키보드를 내린다

This commit is contained in:
Yu Sung
2026-04-10 19:46:18 +09:00
parent 8b04952a4e
commit 4f427fc146
2 changed files with 83 additions and 2 deletions

View File

@@ -90,7 +90,28 @@ struct LiveRoomViewV2: View {
return !(isCurrentUserHost || isCurrentUserStaff)
}
private var isShowingPersistentDialog: Bool {
viewModel.isShowProfilePopup
|| viewModel.isShowDonationPopup
|| (viewModel.changeIsAdult && !UserDefaults.bool(forKey: .auth))
|| viewModel.isShowNoticeLikeHeart
|| viewModel.isShowQuitPopup
|| viewModel.isShowLiveEndPopup
|| isShowChatDeleteDialog
|| viewModel.isShowProfileList
|| viewModel.isShowUserProfilePopup
|| viewModel.isShowReportMenu
|| viewModel.isShowUesrBlockConfirm
|| viewModel.isShowUesrReportView
|| viewModel.isShowProfileReportConfirm
|| (viewModel.isShowNoChattingConfirm && viewModel.noChattingUserId > 0)
|| isShowFollowNotifyDialog
|| viewModel.isShowRouletteSettings
|| (!viewModel.roulettePreviewList.isEmpty && viewModel.isShowRoulettePreview)
|| viewModel.isShowRoulette
}
var body: some View {
ScreenCaptureSecureContainer(isSecureModeEnabled: shouldEnforceScreenCaptureProtection) {
ZStack {
@@ -1086,7 +1107,7 @@ struct LiveRoomViewV2: View {
guestFollowButtonTypeOverride = nil
}
}
.onChange(of: isShowChatDeleteDialog) { isShowing in
.onChange(of: isShowingPersistentDialog) { isShowing in
if isShowing {
hideKeyboard()
}