mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-03-31 18:25:56 +00:00
31 lines
633 B
Swift
31 lines
633 B
Swift
//
|
|
// CIEventView.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by JRoberts on 20.07.2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
// Spec: spec/client/chat-view.md
|
|
|
|
import SwiftUI
|
|
import SimpleXChat
|
|
|
|
// Spec: spec/client/chat-view.md#CIEventView
|
|
struct CIEventView: View {
|
|
var eventText: Text
|
|
|
|
var body: some View {
|
|
eventText
|
|
.padding(.horizontal, 6)
|
|
.padding(.vertical, 4)
|
|
.textSelection(.disabled)
|
|
.lineLimit(4)
|
|
}
|
|
}
|
|
|
|
struct CIEventView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
CIEventView(eventText: Text("event happened"))
|
|
}
|
|
}
|