라이브방
- 채팅창 내용 길어지면 채팅창이 길어져서 UI가 깨지던 버그 수정
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user