From 15ab9f713519e84f2925b138d846d29276b2f983 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 1 Aug 2023 21:51:41 -0700 Subject: [PATCH] scroll: allow any hashable target --- damus/Views/EventDetailView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/damus/Views/EventDetailView.swift b/damus/Views/EventDetailView.swift index 1937ba3f..3844791d 100644 --- a/damus/Views/EventDetailView.swift +++ b/damus/Views/EventDetailView.swift @@ -21,7 +21,7 @@ struct EventDetailView_Previews: PreviewProvider { } } -func scroll_to_event(scroller: ScrollViewProxy, id: String, delay: Double, animate: Bool, anchor: UnitPoint = .bottom) { +func scroll_to_event(scroller: ScrollViewProxy, id: ID, delay: Double, animate: Bool, anchor: UnitPoint = .bottom) { DispatchQueue.main.asyncAfter(deadline: .now() + delay) { if animate { withAnimation {