damus

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

commit d1e7de5dcbae376ea920d3b83fc37b5cda2fe0d0
parent 11e0a87f06657c703d343296ba3938816d184001
Author: Joel Klabo <joelklabo@gmail.com>
Date:   Thu, 19 Jan 2023 22:25:48 -0800

Add Preview with 999 Everything

Diffstat:
Mdamus/Views/ActionBar/EventActionBar.swift | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/damus/Views/ActionBar/EventActionBar.swift b/damus/Views/ActionBar/EventActionBar.swift @@ -158,6 +158,7 @@ struct EventActionBar_Previews: PreviewProvider { let bar = ActionBarModel(likes: 0, boosts: 0, tips: 0, our_like: nil, our_boost: nil, our_tip: nil) let likedbar = ActionBarModel(likes: 10, boosts: 10, tips: 0, our_like: nil, our_boost: nil, our_tip: nil) let likedbar_ours = ActionBarModel(likes: 100, boosts: 100, tips: 0, our_like: NostrEvent(id: "", content: "", pubkey: ""), our_boost: nil, our_tip: nil) + let maxed_bar = ActionBarModel(likes: 999, boosts: 999, tips: 0, our_like: NostrEvent(id: "", content: "", pubkey: ""), our_boost: NostrEvent(id: "", content: "", pubkey: ""), our_tip: nil) VStack(spacing: 50) { EventActionBar(damus_state: ds, event: ev, bar: bar) @@ -165,6 +166,8 @@ struct EventActionBar_Previews: PreviewProvider { EventActionBar(damus_state: ds, event: ev, bar: likedbar) EventActionBar(damus_state: ds, event: ev, bar: likedbar_ours) + + EventActionBar(damus_state: ds, event: ev, bar: maxed_bar) } .padding(20) }