From 37aa6d13de1bf69e28f5d85c99100a7b2eaa8fde Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Sat, 26 Oct 2024 01:02:28 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C=EB=B0=A9=20-=20?= =?UTF-8?q?=EC=B1=84=ED=8C=85=EC=B0=BD=20=EB=82=B4=EC=9A=A9=20=EA=B8=B8?= =?UTF-8?q?=EC=96=B4=EC=A7=80=EB=A9=B4=20=EC=B1=84=ED=8C=85=EC=B0=BD?= =?UTF-8?q?=EC=9D=B4=20=EA=B8=B8=EC=96=B4=EC=A0=B8=EC=84=9C=20UI=EA=B0=80?= =?UTF-8?q?=20=EA=B9=A8=EC=A7=80=EB=8D=98=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SodaLive/Sources/CustomView/ChatTextFieldView.swift | 2 ++ .../Live/Room/V2/Component/View/LiveRoomInputChatView.swift | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/SodaLive/Sources/CustomView/ChatTextFieldView.swift b/SodaLive/Sources/CustomView/ChatTextFieldView.swift index 6b5fe4f..3f78ecf 100644 --- a/SodaLive/Sources/CustomView/ChatTextFieldView.swift +++ b/SodaLive/Sources/CustomView/ChatTextFieldView.swift @@ -44,6 +44,8 @@ struct ChatTextFieldView: UIViewRepresentable { textField.tintColor = UIColor(hex: "3BB9F1") textField.font = UIFont(name: Font.medium.rawValue, size: 13.3) textField.returnKeyType = .send + textField.setContentHuggingPriority(.defaultLow, for: .horizontal) // 우선순위 낮추기 + textField.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) // 우선순위 낮추기 textField.addTarget(context.coordinator, action: #selector(Coordinator.textDidChange(_:)), for: .editingChanged) return textField } diff --git a/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInputChatView.swift b/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInputChatView.swift index 22c7cc2..985af31 100644 --- a/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInputChatView.swift +++ b/SodaLive/Sources/Live/Room/V2/Component/View/LiveRoomInputChatView.swift @@ -21,7 +21,6 @@ struct LiveRoomInputChatView: View { chatMessage = "" } } - .padding(.horizontal, 13.3) .padding(.vertical, 18.3) .fixedSize(horizontal: false, vertical: true) .frame(maxWidth: .infinity) @@ -29,13 +28,14 @@ struct LiveRoomInputChatView: View { Image("btn_message_send") .resizable() .frame(width: 35, height: 35) - .padding(6.7) .onTapGesture { if sendMessage(chatMessage) { chatMessage = "" } } } + .padding(.leading, 13.3) + .padding(.trailing, 6.7) .background(Color.gray22) .cornerRadius(5.3) .overlay(