aboutsummaryrefslogtreecommitdiff
path: root/Hotline/macOS/NewsView.swift
diff options
context:
space:
mode:
authorDustin Mierau <dustin@mierau.me>2023-12-22 17:37:13 -0800
committerDustin Mierau <dustin@mierau.me>2023-12-22 17:37:13 -0800
commit4ddc0699afedae39fa27e134bec05330426f2120 (patch)
treece0936e7c537ef527c6472b746b8ef16e471c912 /Hotline/macOS/NewsView.swift
parent3d26737cccd57fcbb5289874363f030ecef77573 (diff)
Some work to get banner images working. Some plumbing to get file transfers working though they don't yet. Moving some code away from async/await.
Diffstat (limited to 'Hotline/macOS/NewsView.swift')
-rw-r--r--Hotline/macOS/NewsView.swift30
1 files changed, 28 insertions, 2 deletions
diff --git a/Hotline/macOS/NewsView.swift b/Hotline/macOS/NewsView.swift
index 33cc03e..45bae68 100644
--- a/Hotline/macOS/NewsView.swift
+++ b/Hotline/macOS/NewsView.swift
@@ -220,7 +220,7 @@ struct NewsView: View {
.background(Color(nsColor: .textBackgroundColor))
}
.toolbar {
- ToolbarItem(placement:.primaryAction) {
+ ToolbarItem(placement: .primaryAction) {
Button {
} label: {
@@ -228,13 +228,39 @@ struct NewsView: View {
}
}
- ToolbarItem(placement:.primaryAction) {
+ ToolbarItem(placement: .primaryAction) {
Button {
} label: {
Image(systemName: "arrowshape.turn.up.left")
}
}
+
+// if let bannerImage = model.bannerImage {
+// ToolbarItem(placement: .primaryAction) {
+//// HStack {
+// bannerImage
+// .resizable()
+// .aspectRatio(contentMode: .fit)
+// .clipped()
+// .frame(minHeight: 60, alignment: .topLeading
+// )
+// .clipped()
+// }
+// .frame(maxWidth: .infinity)
+// .tag(MenuItem(name: "title", image: "", type: .banner))
+// .padding(.bottom, 16)
+
+ // VStack(spacing: 0) {
+ // bannerImage
+ // .resizable()
+ // .aspectRatio(contentMode: .fit)
+ // .frame(maxWidth: .infinity, minHeight: 60, alignment: .topLeading)
+ // .clipped()
+ // }
+ // .frame(maxWidth: .infinity)
+// }
+// }
}
}
}