From 7015ccd41f4c35b65747e706c97eab7985857409 Mon Sep 17 00:00:00 2001 From: cheykrym Date: Fri, 12 Dec 2025 03:10:03 +0300 Subject: [PATCH] update chetchik --- yobble/Views/Chat/PrivateChatView.swift | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/yobble/Views/Chat/PrivateChatView.swift b/yobble/Views/Chat/PrivateChatView.swift index b19357c..fd97f62 100644 --- a/yobble/Views/Chat/PrivateChatView.swift +++ b/yobble/Views/Chat/PrivateChatView.swift @@ -624,14 +624,23 @@ struct PrivateChatView: View { .padding(.trailing, 44) .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)")