From 9ce6ff2766c461d2b35b217dc6a78f1f46cac0c8 Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Thu, 11 Apr 2024 21:47:14 -0700 Subject: [PATCH] Compact popover --- Meshtastic/Views/Helpers/MQTTIcon.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Meshtastic/Views/Helpers/MQTTIcon.swift b/Meshtastic/Views/Helpers/MQTTIcon.swift index 82af2699..171f743e 100644 --- a/Meshtastic/Views/Helpers/MQTTIcon.swift +++ b/Meshtastic/Views/Helpers/MQTTIcon.swift @@ -25,11 +25,11 @@ struct MQTTIcon: View { .imageScale(.large) .foregroundColor(connected ? .green : .gray) .symbolRenderingMode(.hierarchical) - }.popover(isPresented: self.$isPopoverOpen, content: { + }.popover(isPresented: self.$isPopoverOpen, arrowEdge: .bottom, content: { VStack(spacing: 0.5) { - Text("Subscribed to topic: " + topic) + Text("Topic: " + topic) .padding(20) - Button("Close", action: { self.isPopoverOpen = false }).padding([.bottom], 20) + Button("close", action: { self.isPopoverOpen = false }).padding([.bottom], 20) } .presentationCompactAdaptation(.popover) })