damus

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

commit 4402d4bdf5844bf91f881e9c0535e3930aa83669
parent 28e67f4a7c96d98e349b4dead1dcc7772d79c6c9
Author: William Casarin <jb55@jb55.com>
Date:   Fri,  5 May 2023 14:22:24 -0700

dms: use lazyvstack

It gets too poppy otherwise

Changelog-Fixed: Made DMs less poppy

Diffstat:
Mdamus/Views/DMChatView.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/damus/Views/DMChatView.swift b/damus/Views/DMChatView.swift @@ -19,7 +19,7 @@ struct DMChatView: View { var Messages: some View { ScrollViewReader { scroller in ScrollView { - VStack(alignment: .leading) { + LazyVStack(alignment: .leading) { ForEach(Array(zip(dms.events, dms.events.indices)), id: \.0.id) { (ev, ind) in DMView(event: dms.events[ind], damus_state: damus_state) .contextMenu{MenuItems(event: ev, keypair: damus_state.keypair, target_pubkey: ev.pubkey, bookmarks: damus_state.bookmarks, muted_threads: damus_state.muted_threads)}