diff options
| author | Dustin Mierau <dustin@mierau.me> | 2025-10-24 22:47:44 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2025-10-24 22:47:44 -0700 |
| commit | cf113ea053334175b93770b025c1f7d22eda6eab (patch) | |
| tree | 8f0037e7e9ad3aa592c8475d962d37eb0c867703 /Hotline/iOS/ChatView.swift | |
| parent | 75ebba6ad7e45e636cd5bb3400d25d040cabad6c (diff) | |
A first pass at chat persistence. Also some chat UI cleanup.
Diffstat (limited to 'Hotline/iOS/ChatView.swift')
| -rw-r--r-- | Hotline/iOS/ChatView.swift | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Hotline/iOS/ChatView.swift b/Hotline/iOS/ChatView.swift index dadd5e6..0ad41e0 100644 --- a/Hotline/iOS/ChatView.swift +++ b/Hotline/iOS/ChatView.swift @@ -63,6 +63,22 @@ struct ChatView: View { } .padding() } + else if msg.type == .signOut { + HStack { + Spacer() + Label { + Text(msg.text) + .font(.footnote) + } icon: { + Image(systemName: "arrow.up.circle.fill") + } + .labelStyle(.titleAndIcon) + .foregroundStyle(Color.red) + .opacity(0.8) + Spacer() + } + .padding(.vertical, 6) + } else { HStack(alignment: .firstTextBaseline) { if let username = msg.username { |