update chetchik

This commit is contained in:
cheykrym 2025-12-12 03:10:03 +03:00
parent 9172a0b353
commit 7015ccd41f

View File

@ -625,13 +625,22 @@ struct PrivateChatView: View {
.padding(.bottom, 10)
.frame(maxWidth: .infinity, minHeight: 40, alignment: .bottomLeading)
Button(action: { }) { // переключатель на стикеры
Image(systemName: "face.smiling")
.font(.system(size: 18, weight: .semibold))
.foregroundColor(.secondary)
HStack{
if draftText.count > 2047 {
Text("\(draftText.count) / \(viewModel.maxMessageLength)")
.font(.caption2)
.fontWeight(.medium)
.foregroundColor(draftText.count > viewModel.maxMessageLength ? .red : .secondary)
}
Button(action: { }) { // переключатель на стикеры
Image(systemName: "face.smiling")
.font(.system(size: 18, weight: .semibold))
.foregroundColor(.secondary)
}
.padding(.trailing, 12)
.padding(.bottom, 10)
}
.padding(.trailing, 12)
.padding(.bottom, 10)
// if draftText.count > 300 {
// Text("\(draftText.count) / \(viewModel.maxMessageLength)")