update chetchik
This commit is contained in:
parent
9172a0b353
commit
7015ccd41f
@ -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)")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user