mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-31 18:25:56 +00:00
* started swift API for chat * skeleton UI * show all chat responses in Terminal view * show chat list in UI * refactor swift API
34 lines
769 B
Swift
34 lines
769 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.displayName)
|
|
}
|
|
}
|
|
|
|
struct ChatPreviewView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
ChatPreviewView(chatPreview: ChatPreview(
|
|
chatInfo: .direct(contact: Contact(
|
|
contactId: 123,
|
|
localDisplayName: "ep",
|
|
profile: Profile(
|
|
displayName: "ep",
|
|
fullName: "Ep"
|
|
),
|
|
viaGroup: nil
|
|
))
|
|
))
|
|
}
|
|
}
|