aboutsummaryrefslogtreecommitdiff
path: root/Hotline/Views/MessageBoardView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2023-12-05 17:41:22 -0800
committerDustin Mierau <dustin@mierau.me>2023-12-05 17:41:22 -0800
commit06a2166415bca7e5fe32eac505859bdd690ab8e0 (patch)
treed47d4ea30766a8e382deafa607a7abe66f47f9ab /Hotline/Views/MessageBoardView.swift
parentb99219f16792be4a06a89f1f32a59f0bf97bba68 (diff)
Some styling work. Files showing. Message board tweaks.
Diffstat (limited to 'Hotline/Views/MessageBoardView.swift')
-rw-r--r--Hotline/Views/MessageBoardView.swift24
1 files changed, 15 insertions, 9 deletions
diff --git a/Hotline/Views/MessageBoardView.swift b/Hotline/Views/MessageBoardView.swift
index e5f1521..8b1a30c 100644
--- a/Hotline/Views/MessageBoardView.swift
+++ b/Hotline/Views/MessageBoardView.swift
@@ -9,19 +9,25 @@ struct MessageBoardView: View {
var body: some View {
// @Bindable var config = appState
- VStack(alignment: .leading) {
- ScrollView {
- VStack(alignment: .leading) {
- Text(hotline.messageBoard)
- .fontDesign(.monospaced)
+ ScrollView {
+ LazyVStack(alignment: .leading) {
+ ForEach(hotline.messageBoardMessages, id: \.self) {
+ Text($0)
+ .lineLimit(100)
.padding()
- .dynamicTypeSize(.small)
- .textSelection(.enabled)
+ Divider()
}
}
}
- .presentationDetents([.fraction(0.6)])
- .presentationDragIndicator(.visible)
+// List(hotline.messageBoardMessages, id: \.self) {
+// Text($0)
+// .lineLimit(100)
+// .padding()
+// Divider()
+// .listRowSeparator(.hidden)
+// .listRowInsets(EdgeInsets(top: 0, leading: 0, bottom: 0, trailing: 0))
+// }
+// .listStyle(.plain)
.task {
if !fetched {
hotline.sendGetNews() {