Room List Filters Empty State View (#2522)

This commit is contained in:
Mauro
2024-03-05 15:15:07 +01:00
committed by GitHub
parent 1b5db6c63d
commit 8c68f5a591
8 changed files with 141 additions and 1 deletions
@@ -118,6 +118,10 @@ struct HomeScreenViewState: BindableState {
var shouldHideRoomList: Bool {
bindings.isSearchFieldFocused && bindings.searchQuery.isEmpty
}
var shouldShowEmptyFilterState: Bool {
shouldShowFilters && bindings.filtersState.isFiltering && visibleRooms.isEmpty
}
}
struct HomeScreenViewStateBindings {