diff options
| author | Dustin Mierau <dustin@mierau.me> | 2024-05-02 11:52:55 -0700 |
|---|---|---|
| committer | Dustin Mierau <dustin@mierau.me> | 2024-05-02 11:52:55 -0700 |
| commit | 480500a3e7cfe1e2aa8ff261ca6f9e522c3aaf4c (patch) | |
| tree | 0a90a527da1ae9d2664277948328fba5d58de55f /Hotline/macOS/MessageBoardView.swift | |
| parent | 91569dd83bfe1e17b8f3b31334814132707de5a1 (diff) | |
Link highlighting in chat (with basic markdown support for bold, italtics, strikethrough, monospace/code). Remove some source files from iOS build.
Diffstat (limited to 'Hotline/macOS/MessageBoardView.swift')
| -rw-r--r-- | Hotline/macOS/MessageBoardView.swift | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/Hotline/macOS/MessageBoardView.swift b/Hotline/macOS/MessageBoardView.swift index 27b4be7..660ca05 100644 --- a/Hotline/macOS/MessageBoardView.swift +++ b/Hotline/macOS/MessageBoardView.swift @@ -13,7 +13,8 @@ struct MessageBoardView: View { ScrollView { LazyVStack(alignment: .leading) { ForEach(model.messageBoard, id: \.self) { - Text($0) + Text(LocalizedStringKey($0.convertLinksToMarkdown())) + .tint(Color("Link Color")) .lineLimit(100) .lineSpacing(4) .padding() @@ -51,9 +52,6 @@ struct MessageBoardView: View { } .padding() } - - - } .sheet(isPresented: $composerDisplayed) { TextEditor(text: $composerText) @@ -82,11 +80,6 @@ struct MessageBoardView: View { } } } -// .alert("Hello", isPresented: $showPermissionAlert) { -// Button("OK") { -// showPermissionAlert.toggle() -// } -// } message: { Text("WHAT") } .toolbar { ToolbarItem(placement:.primaryAction) { Button { |