Files
simplex-chat/apps/ios/Shared/Views/ChatPreviewView.swift
Evgeny Poberezkin 3b19aaf1d1 iOS: send/receive messages in chats, connect via QR code (#238)
* send messages from chats

* update API to use chat IDs

* send messages to groups

* generate invitation QR code

* connect via QR code
2022-01-30 18:27:20 +00:00

28 lines
672 B
Swift

//
// ChatPreviewView.swift
// SimpleX
//
// Created by Evgeny Poberezkin on 28/01/2022.
// Copyright © 2022 SimpleX Chat. All rights reserved.
//
import SwiftUI
struct ChatPreviewView: View {
var chatPreview: ChatPreview
var body: some View {
Text(chatPreview.chatInfo.localDisplayName)
}
}
struct ChatPreviewView_Previews: PreviewProvider {
static var previews: some View {
Group{
ChatPreviewView(chatPreview: ChatPreview(chatInfo: sampleDirectChatInfo))
ChatPreviewView(chatPreview: ChatPreview(chatInfo: sampleGroupChatInfo))
}
.previewLayout(.fixed(width: 300, height: 70))
}
}