Compare commits
	
		
			4 Commits
		
	
	
		
			9685674056
			...
			93c865f5ca
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 93c865f5ca | |||
| 2d3299fe96 | |||
| 2c31d25596 | |||
| c6e17f0fc5 | 
@ -209,7 +209,7 @@ struct PrivateChatView: View {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private var composer: some View {
 | 
					    private var composer: some View {
 | 
				
			||||||
        VStack(spacing: 10) {
 | 
					        VStack(spacing: 10) {
 | 
				
			||||||
            HStack(alignment: .bottom, spacing: 3) {
 | 
					            HStack(alignment: .bottom, spacing: 4) {
 | 
				
			||||||
                Button(action: {  }) { // переключатель на стикеры
 | 
					                Button(action: {  }) { // переключатель на стикеры
 | 
				
			||||||
                    Image(systemName: "paperclip")
 | 
					                    Image(systemName: "paperclip")
 | 
				
			||||||
                        .font(.system(size: 18, weight: .semibold))
 | 
					                        .font(.system(size: 18, weight: .semibold))
 | 
				
			||||||
@ -241,6 +241,9 @@ struct PrivateChatView: View {
 | 
				
			|||||||
                .frame(minHeight: 40, alignment: .bottom)
 | 
					                .frame(minHeight: 40, alignment: .bottom)
 | 
				
			||||||
                .background(Color(.secondarySystemBackground))
 | 
					                .background(Color(.secondarySystemBackground))
 | 
				
			||||||
                .clipShape(RoundedRectangle(cornerRadius: 18, style: .continuous))
 | 
					                .clipShape(RoundedRectangle(cornerRadius: 18, style: .continuous))
 | 
				
			||||||
 | 
					                .alignmentGuide(.bottom) { dimension in
 | 
				
			||||||
 | 
					                    dimension[VerticalAlignment.bottom] - 2
 | 
				
			||||||
 | 
					                }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if !isSendAvailable {
 | 
					                if !isSendAvailable {
 | 
				
			||||||
                    Button(action: { isVideoPreferred.toggle() }) {
 | 
					                    Button(action: { isVideoPreferred.toggle() }) {
 | 
				
			||||||
@ -255,7 +258,7 @@ struct PrivateChatView: View {
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        .padding(.horizontal, 10)
 | 
					        .padding(.horizontal, 6)
 | 
				
			||||||
        .padding(.top, 10)
 | 
					        .padding(.top, 10)
 | 
				
			||||||
        .padding(.bottom, 8)
 | 
					        .padding(.bottom, 8)
 | 
				
			||||||
        .background(.ultraThinMaterial)
 | 
					        .background(.ultraThinMaterial)
 | 
				
			||||||
@ -271,11 +274,11 @@ struct PrivateChatView: View {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    private var sendButton: some View {
 | 
					    private var sendButton: some View {
 | 
				
			||||||
        Button(action: sendCurrentMessage) {
 | 
					        Button(action: sendCurrentMessage) {
 | 
				
			||||||
            Image(systemName: viewModel.isSending ? "hourglass" : "paperplane.fill")
 | 
					            Image(systemName: "paperplane.fill")
 | 
				
			||||||
                .font(.system(size: 18, weight: .semibold))
 | 
					                .font(.system(size: 16, weight: .semibold))
 | 
				
			||||||
                .foregroundColor(.white)
 | 
					                .foregroundColor(Color.white.opacity(isSendDisabled ? 0.6 : 1))
 | 
				
			||||||
                .frame(width: 40, height: 40)
 | 
					                .frame(width: 36, height: 36)
 | 
				
			||||||
                .background(Color.accentColor)
 | 
					                .background(isSendDisabled ? Color.accentColor.opacity(0.4) : Color.accentColor)
 | 
				
			||||||
                .clipShape(Circle())
 | 
					                .clipShape(Circle())
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        .disabled(isSendDisabled)
 | 
					        .disabled(isSendDisabled)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user