aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/MessageBoardView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2024-05-02 11:52:55 -0700
committerDustin Mierau <dustin@mierau.me>2024-05-02 11:52:55 -0700
commit480500a3e7cfe1e2aa8ff261ca6f9e522c3aaf4c (patch)
tree0a90a527da1ae9d2664277948328fba5d58de55f /Hotline/macOS/MessageBoardView.swift
parent91569dd83bfe1e17b8f3b31334814132707de5a1 (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.swift11
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 {