feat(chat): 메시지 입력을 최대 세 줄로 확장한다

This commit is contained in:
Yu Sung
2026-10-19 11:15:08 +09:00
parent b0cabf97f6
commit 14b415e163
@@ -136,7 +136,7 @@ struct UserCreatorChatRoomView: View {
} }
private var inputBarView: some View { private var inputBarView: some View {
HStack(spacing: SodaSpacing.s8) { HStack(alignment: .bottom, spacing: SodaSpacing.s8) {
ZStack(alignment: .leading) { ZStack(alignment: .leading) {
if messageText.isEmpty { if messageText.isEmpty {
Text(I18n.UserCreatorChat.messagePlaceholder) Text(I18n.UserCreatorChat.messagePlaceholder)
@@ -144,17 +144,17 @@ struct UserCreatorChatRoomView: View {
.foregroundColor(Color.gray500) .foregroundColor(Color.gray500)
} }
TextField("", text: $messageText) TextField("", text: $messageText, axis: .vertical)
.appFont(size: 14, weight: .regular) .appFont(size: 14, weight: .regular)
.foregroundColor(.white) .foregroundColor(.white)
.accentColor(Color.soda400) .accentColor(Color.soda400)
.lineLimit(1...3)
.disabled(isInputEnabled == false) .disabled(isInputEnabled == false)
.onSubmit { sendText() }
} }
.padding(.horizontal, SodaSpacing.s16) .padding(.horizontal, SodaSpacing.s16)
.padding(.vertical, SodaSpacing.s12) .padding(.vertical, SodaSpacing.s12)
.background(Color.gray900) .background(Color.gray900)
.cornerRadius(999) .cornerRadius(20)
Button(action: sendText) { Button(action: sendText) {
Image("ic_message_send") Image("ic_message_send")