mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-28 04:06:22 +00:00
37 lines
981 B
Swift
37 lines
981 B
Swift
//
|
|
// ContextInvitingContactMemberView.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by spaced4ndy on 18.09.2023.
|
|
// Copyright © 2023 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct ContextInvitingContactMemberView: View {
|
|
@EnvironmentObject var theme: AppTheme
|
|
|
|
var body: some View {
|
|
HStack {
|
|
Image(systemName: "message")
|
|
.foregroundColor(theme.colors.secondary)
|
|
Text("Send direct message to connect")
|
|
}
|
|
.padding(12)
|
|
.frame(minHeight: 50)
|
|
.frame(maxWidth: .infinity, alignment: .leading)
|
|
.background(
|
|
theme.appColors.sentMessage
|
|
.shadow(color: .black.opacity(0.12), radius: 4, x: 0, y: 0)
|
|
.mask(Rectangle().padding(.bottom, -8))
|
|
)
|
|
.padding(.top, 8)
|
|
}
|
|
}
|
|
|
|
struct ContextInvitingContactMemberView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
ContextInvitingContactMemberView()
|
|
}
|
|
}
|