라이브방
- 채팅창 너비 화면 가득 채움
This commit is contained in:
		| @@ -195,57 +195,54 @@ struct LiveRoomViewV2: View { | ||||
|                                         } | ||||
|                                     } | ||||
|                                      | ||||
|                                     HStack(alignment: .bottom, spacing: 0) { | ||||
|                                         LiveRoomInputChatView { | ||||
|                                             viewModel.sendMessage(chatMessage: $0) { | ||||
|                                                 viewModel.isShowingNewChat = false | ||||
|                                                 proxy.scrollTo(viewModel.messages.count - 1, anchor: .center) | ||||
|                                             } | ||||
|                                              | ||||
|                                             return true | ||||
|                                         } | ||||
|                                          | ||||
|                                         VStack(spacing: 13.3) { | ||||
|                                             if liveRoomInfo.creatorId == UserDefaults.int(forKey: .userId) { | ||||
|                                                 LiveRoomRightBottomButton( | ||||
|                                                     imageName: "ic_roulette_settings", | ||||
|                                                     onClick: { viewModel.isShowRouletteSettings = true } | ||||
|                                                 ) | ||||
|                                             } else { | ||||
|                                                 LiveRoomRightBottomButton( | ||||
|                                                     imageName: "ic_heart_pink", | ||||
|                                                     onClick: { viewModel.likeHeart() } | ||||
|                                                 ) | ||||
|                                                  | ||||
|                                                 if viewModel.isActiveRoulette { | ||||
|                                                     LiveRoomRightBottomButton( | ||||
|                                                         imageName: "ic_roulette", | ||||
|                                                         onClick: { viewModel.showRoulette() } | ||||
|                                                     ) | ||||
|                                                 } | ||||
|                                             } | ||||
|                                              | ||||
|                                     VStack(spacing: 13.3) { | ||||
|                                         if liveRoomInfo.creatorId == UserDefaults.int(forKey: .userId) { | ||||
|                                             LiveRoomRightBottomButton( | ||||
|                                                 imageName: "ic_donation_message_list", | ||||
|                                                 onClick: { viewModel.isShowDonationMessagePopup = true } | ||||
|                                                 imageName: "ic_roulette_settings", | ||||
|                                                 onClick: { viewModel.isShowRouletteSettings = true } | ||||
|                                             ) | ||||
|                                         } else { | ||||
|                                             LiveRoomRightBottomButton( | ||||
|                                                 imageName: "ic_heart_pink", | ||||
|                                                 onClick: { viewModel.likeHeart() } | ||||
|                                             ) | ||||
|                                              | ||||
|                                             if liveRoomInfo.creatorId != UserDefaults.int(forKey: .userId) { | ||||
|                                             if viewModel.isActiveRoulette { | ||||
|                                                 LiveRoomRightBottomButton( | ||||
|                                                     imageName: "ic_donation", | ||||
|                                                     onClick: { viewModel.isShowDonationPopup = true } | ||||
|                                                 ) | ||||
|                                             } | ||||
|                                              | ||||
|                                             if viewModel.role == .SPEAKER { | ||||
|                                                 LiveRoomRightBottomButton( | ||||
|                                                     imageName: viewModel.isMute ? "ic_mic_off" : "ic_mic_on", | ||||
|                                                     onClick: { viewModel.toggleMute() } | ||||
|                                                     imageName: "ic_roulette", | ||||
|                                                     onClick: { viewModel.showRoulette() } | ||||
|                                                 ) | ||||
|                                             } | ||||
|                                         } | ||||
|                                         .padding(.bottom, 13.3) | ||||
|                                         .padding(.trailing, 13.3) | ||||
|                                          | ||||
|                                         LiveRoomRightBottomButton( | ||||
|                                             imageName: "ic_donation_message_list", | ||||
|                                             onClick: { viewModel.isShowDonationMessagePopup = true } | ||||
|                                         ) | ||||
|                                          | ||||
|                                         if liveRoomInfo.creatorId != UserDefaults.int(forKey: .userId) { | ||||
|                                             LiveRoomRightBottomButton( | ||||
|                                                 imageName: "ic_donation", | ||||
|                                                 onClick: { viewModel.isShowDonationPopup = true } | ||||
|                                             ) | ||||
|                                         } | ||||
|                                          | ||||
|                                         if viewModel.role == .SPEAKER { | ||||
|                                             LiveRoomRightBottomButton( | ||||
|                                                 imageName: viewModel.isMute ? "ic_mic_off" : "ic_mic_on", | ||||
|                                                 onClick: { viewModel.toggleMute() } | ||||
|                                             ) | ||||
|                                         } | ||||
|                                     } | ||||
|                                     .padding(.trailing, 13.3) | ||||
|                                      | ||||
|                                     LiveRoomInputChatView { | ||||
|                                         viewModel.sendMessage(chatMessage: $0) { | ||||
|                                             viewModel.isShowingNewChat = false | ||||
|                                             proxy.scrollTo(viewModel.messages.count - 1, anchor: .center) | ||||
|                                         } | ||||
|                                          | ||||
|                                         return true | ||||
|                                     } | ||||
|                                     .padding(.bottom, 10) | ||||
|                                 } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Yu Sung
					Yu Sung