From c618aab843206d6c46131b72970a3545c1bc9563 Mon Sep 17 00:00:00 2001 From: Tomas Harkema Date: Tue, 27 Apr 2021 16:23:02 +0200 Subject: [PATCH] make it a todo --- .../OpenHaystack/HaystackApp/Views/AccessoryMapAnnotation.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenHaystack/OpenHaystack/HaystackApp/Views/AccessoryMapAnnotation.swift b/OpenHaystack/OpenHaystack/HaystackApp/Views/AccessoryMapAnnotation.swift index 1474f3f..c888c4f 100644 --- a/OpenHaystack/OpenHaystack/HaystackApp/Views/AccessoryMapAnnotation.swift +++ b/OpenHaystack/OpenHaystack/HaystackApp/Views/AccessoryMapAnnotation.swift @@ -46,7 +46,7 @@ class AccessoryAnnotationView: MKAnnotationView { guard let accessory = (self.annotation as? AccessoryAnnotation)?.accessory else { return } self.pinView?.removeFromSuperview() self.pinView = nil - self.pinView = NSHostingView(rootView: AccessoryPinView(accessory: accessory)) // LEAK! Something swiftui? + self.pinView = NSHostingView(rootView: AccessoryPinView(accessory: accessory)) // TODO: LEAK! This view is not release properly self.addSubview(pinView!)