damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit ced028755c39d2ab97e78a9cc6d12e43d86ffe30
parent dabf7376545808ba0c03f387ea3ca8f3048eac31
Author: William Casarin <jb55@jb55.com>
Date:   Fri, 23 Jun 2023 11:45:42 +0200

debug: InnerTimeline render counts

Diffstat:
Mdamus/Views/Timeline/InnerTimelineView.swift | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/damus/Views/Timeline/InnerTimelineView.swift b/damus/Views/Timeline/InnerTimelineView.swift @@ -15,10 +15,14 @@ struct InnerTimelineView: View { @State var nav_target: NostrEvent @State var navigating: Bool = false + static var count: Int = 0 + init(events: EventHolder, damus: DamusState, filter: @escaping (NostrEvent) -> Bool) { self.events = events self.state = damus self.filter = filter + print("rendering InnerTimelineView \(InnerTimelineView.count)") + InnerTimelineView.count += 1 // dummy event to avoid MaybeThreadView self._nav_target = State(initialValue: test_event) }