From 60a3f2d29dfff945f59787f5a7786c6e78ba7bb9 Mon Sep 17 00:00:00 2001 From: Dustin Mierau Date: Wed, 1 May 2024 21:22:18 -0700 Subject: New Hotline toolbar window for banner. --- Hotline/macOS/ChatView.swift | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'Hotline/macOS/ChatView.swift') diff --git a/Hotline/macOS/ChatView.swift b/Hotline/macOS/ChatView.swift index 7f7d677..1b82e02 100644 --- a/Hotline/macOS/ChatView.swift +++ b/Hotline/macOS/ChatView.swift @@ -38,21 +38,22 @@ struct ChatView: View { if msg.type == .agreement { VStack(alignment: .center, spacing: 16) { + #if os(iOS) if let bannerImage = self.model.bannerImage { - #if os(macOS) - Image(nsImage: bannerImage) - .resizable() - .scaledToFit() - .frame(maxWidth: 468.0) - .clipShape(RoundedRectangle(cornerRadius: 3)) - #elseif os(iOS) +// #if os(macOS) +// Image(nsImage: bannerImage) +// .resizable() +// .scaledToFit() +// .frame(maxWidth: 468.0) +// .clipShape(RoundedRectangle(cornerRadius: 3)) +// #elseif os(iOS) Image(uiImage: bannerImage) .resizable() .scaledToFit() .frame(maxWidth: 468.0) .clipShape(RoundedRectangle(cornerRadius: 3)) - #endif } + #endif VStack(spacing: 0) { ScrollView(.vertical) { -- cgit