damus

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

commit 9093bdec2d6359391f77d85dbef289864a938d5b
parent baed6adf491c6e80d3c8befbca80c0b8d6adbca3
Author: William Casarin <jb55@jb55.com>
Date:   Tue,  9 May 2023 18:34:08 -0700

home: add some more helper functions

Diffstat:
Mdamus/ContentView.swift | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -235,6 +235,16 @@ struct ContentView: View { self.thread_open = true } + func open_profile(id: String) { + self.active_profile = id + self.profile_open = true + } + + func open_search(filt: NostrFilter) { + self.active_search = filt + self.search_open = true + } + var body: some View { VStack(alignment: .leading, spacing: 0) { if let damus = self.damus_state {