From 9093bdec2d6359391f77d85dbef289864a938d5b Mon Sep 17 00:00:00 2001 From: William Casarin Date: Tue, 9 May 2023 18:34:08 -0700 Subject: [PATCH] home: add some more helper functions --- damus/ContentView.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/damus/ContentView.swift b/damus/ContentView.swift index f27062907..09b88edb2 100644 --- 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 {