fix(live-room): 유지형 다이얼로그 표시 시 키보드를 내린다
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user