damus

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

commit 7123b225a107b586a5599ff2f29e22e415f1d2ba
parent b6f25a85f84fe427c211812177f4aa4a94e80fcd
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 12 Jul 2023 18:24:55 -0700

search: make model an ObjservedObject

This should not be a state object because the data is passed in
elsewhere

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

diff --git a/damus/Views/SearchView.swift b/damus/Views/SearchView.swift @@ -9,7 +9,7 @@ import SwiftUI struct SearchView: View { let appstate: DamusState - @StateObject var search: SearchModel + @ObservedObject var search: SearchModel @Environment(\.dismiss) var dismiss var body: some View {