File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,14 @@ class ActivityListViewModel: ObservableObject {
137137 selectedTags. removeAll ( )
138138 }
139139
140+ func resetFilters( ) {
141+ searchText = " "
142+ startDate = nil
143+ endDate = nil
144+ selectedTags. removeAll ( )
145+ selectedTab = . all
146+ }
147+
140148 private func updateFilteredActivities( ) async {
141149 do {
142150 // Convert dates to timestamps if they exist, ensuring start date is start of day and end date is end of day
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ struct AllActivityView: View {
6767 }
6868 )
6969 }
70+ . scrollDismissesKeyboard ( . interactively)
7071 . refreshable {
7172 do {
7273 try await wallet. sync ( )
@@ -80,6 +81,9 @@ struct AllActivityView: View {
8081 . navigationBarHidden ( true )
8182 . padding ( . horizontal, 16 )
8283 . bottomSafeAreaPadding ( )
84+ . onAppear {
85+ activity. resetFilters ( )
86+ }
8387 }
8488}
8589
You can’t perform that action at this time.
0 commit comments