parent
b4f5dc54d7
commit
37aa6d13de
|
@ -44,6 +44,8 @@ struct ChatTextFieldView: UIViewRepresentable {
|
||||||
textField.tintColor = UIColor(hex: "3BB9F1")
|
textField.tintColor = UIColor(hex: "3BB9F1")
|
||||||
textField.font = UIFont(name: Font.medium.rawValue, size: 13.3)
|
textField.font = UIFont(name: Font.medium.rawValue, size: 13.3)
|
||||||
textField.returnKeyType = .send
|
textField.returnKeyType = .send
|
||||||
|
textField.setContentHuggingPriority(.defaultLow, for: .horizontal) // 우선순위 낮추기
|
||||||
|
textField.setContentCompressionResistancePriority(.defaultLow, for: .horizontal) // 우선순위 낮추기
|
||||||
textField.addTarget(context.coordinator, action: #selector(Coordinator.textDidChange(_:)), for: .editingChanged)
|
textField.addTarget(context.coordinator, action: #selector(Coordinator.textDidChange(_:)), for: .editingChanged)
|
||||||
return textField
|
return textField
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,6 @@ struct LiveRoomInputChatView: View {
|
||||||
chatMessage = ""
|
chatMessage = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.padding(.horizontal, 13.3)
|
|
||||||
.padding(.vertical, 18.3)
|
.padding(.vertical, 18.3)
|
||||||
.fixedSize(horizontal: false, vertical: true)
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
.frame(maxWidth: .infinity)
|
.frame(maxWidth: .infinity)
|
||||||
|
@ -29,13 +28,14 @@ struct LiveRoomInputChatView: View {
|
||||||
Image("btn_message_send")
|
Image("btn_message_send")
|
||||||
.resizable()
|
.resizable()
|
||||||
.frame(width: 35, height: 35)
|
.frame(width: 35, height: 35)
|
||||||
.padding(6.7)
|
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
if sendMessage(chatMessage) {
|
if sendMessage(chatMessage) {
|
||||||
chatMessage = ""
|
chatMessage = ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.padding(.leading, 13.3)
|
||||||
|
.padding(.trailing, 6.7)
|
||||||
.background(Color.gray22)
|
.background(Color.gray22)
|
||||||
.cornerRadius(5.3)
|
.cornerRadius(5.3)
|
||||||
.overlay(
|
.overlay(
|
||||||
|
|
Loading…
Reference in New Issue