update chetchik

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

View File

@ -624,14 +624,23 @@ struct PrivateChatView: View {
.padding(.trailing, 44) .padding(.trailing, 44)
.padding(.bottom, 10) .padding(.bottom, 10)
.frame(maxWidth: .infinity, minHeight: 40, alignment: .bottomLeading) .frame(maxWidth: .infinity, minHeight: 40, alignment: .bottomLeading)
Button(action: { }) { // переключатель на стикеры HStack{
Image(systemName: "face.smiling") if draftText.count > 2047 {
.font(.system(size: 18, weight: .semibold)) Text("\(draftText.count) / \(viewModel.maxMessageLength)")
.foregroundColor(.secondary) .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 { // if draftText.count > 300 {
// Text("\(draftText.count) / \(viewModel.maxMessageLength)") // Text("\(draftText.count) / \(viewModel.maxMessageLength)")