From bb7c241906bbae3f34936538e97a45d2770e4eaa Mon Sep 17 00:00:00 2001 From: Garth Vander Houwen Date: Tue, 3 Oct 2023 11:08:09 -0700 Subject: [PATCH] Fix history pins with headings --- Meshtastic/Views/Nodes/Helpers/NodeMapSwiftUI.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Meshtastic/Views/Nodes/Helpers/NodeMapSwiftUI.swift b/Meshtastic/Views/Nodes/Helpers/NodeMapSwiftUI.swift index c46bf16b..67fc7a0d 100644 --- a/Meshtastic/Views/Nodes/Helpers/NodeMapSwiftUI.swift +++ b/Meshtastic/Views/Nodes/Helpers/NodeMapSwiftUI.swift @@ -156,13 +156,14 @@ struct NodeMapSwiftUI: View { if showNodeHistory { if pf.contains(.Heading) { Image(systemName: pf.contains(.Speed) && position.speed > 1 ? "location.north.circle" : "hexagon") + .resizable() + .scaledToFit() .foregroundStyle(Color(UIColor(hex: UInt32(node.num))).isLight() ? .black : .white) .background(Color(UIColor(hex: UInt32(node.num)).lighter())) .clipShape(Circle()) .rotationEffect(headingDegrees) - .resizable() - .scaledToFit() .frame(width: 16, height: 16) + } else { Circle() .fill(Color(UIColor(hex: UInt32(node.num)).lighter())) @@ -202,6 +203,7 @@ struct NodeMapSwiftUI: View { } } .popover(item: $selectedWaypoint, attachmentAnchor: .rect(.rect(selectedWaypointRect)), arrowEdge: .bottom) { selection in + //.popover(isPresented: $showingWaypointPopover, arrowEdge: .bottom) { WaypointPopover(waypoint: selection) .padding() .opacity(0.8)