feat(live): 라이브 방 뷰가 표시될 때 홈 뷰의 최상단 레이어에 표시되면서 최대한 다른 창의 간섭을 줄여 터치가 되지 않던 버그 수정

This commit is contained in:
Yu Sung
2025-11-03 11:15:49 +09:00
parent b0857039d7
commit d8c27ae225
2 changed files with 4 additions and 6 deletions

View File

@@ -821,8 +821,6 @@ final class LiveRoomViewModel: NSObject, ObservableObject {
) )
self.agora.sendRawMessageToGroup(rawMessage: editRoomInfoMessage) self.agora.sendRawMessageToGroup(rawMessage: editRoomInfoMessage)
self.errorMessage = "라이브 정보가 수정되었습니다."
self.isShowErrorPopup = true
} else { } else {
self.errorMessage = decoded.message ?? "라이브 정보를 수정하지 못했습니다.\n다시 시도해 주세요." self.errorMessage = decoded.message ?? "라이브 정보를 수정하지 못했습니다.\n다시 시도해 주세요."
self.isShowErrorPopup = true self.isShowErrorPopup = true

View File

@@ -178,10 +178,6 @@ struct HomeView: View {
} }
} }
if appState.isShowPlayer {
LiveRoomViewV2()
}
if appState.isShowNotificationSettingsDialog { if appState.isShowNotificationSettingsDialog {
NotificationSettingsDialog() NotificationSettingsDialog()
} }
@@ -229,6 +225,10 @@ struct HomeView: View {
if isShowPlayer { if isShowPlayer {
ContentPlayerView(isShowing: $isShowPlayer, playlist: []) ContentPlayerView(isShowing: $isShowPlayer, playlist: [])
} }
if appState.isShowPlayer {
LiveRoomViewV2()
}
} }
.edgesIgnoringSafeArea(.bottom) .edgesIgnoringSafeArea(.bottom)
.valueChanged(value: appState.pushRoomId) { value in .valueChanged(value: appState.pushRoomId) { value in