mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
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
|
||
|
))
|
||
|
))
|
||
|
}
|
||
|
}
|