From cf113ea053334175b93770b025c1f7d22eda6eab Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Fri, 24 Oct 2025 22:47:44 -0700 Subject: A first pass at chat persistence. Also some chat UI cleanup. --- Hotline/iOS/ChatView.swift | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'Hotline/iOS/ChatView.swift') 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 { -- cgit