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