Fix room list search bar focus glitches (#2112)

* Fixes #2112 - Room list search bar focus glitches

* Address PR comments
This commit is contained in:
Stefan Ceriu
2023-11-17 18:08:29 +02:00
committed by GitHub
parent d245a4f158
commit f717c7dba4
4 changed files with 24 additions and 6 deletions
@@ -100,6 +100,11 @@ struct HomeScreenViewState: BindableState {
HomeScreenRoom.placeholder()
}
}
// Used to hide all the rooms when the search field is focused and the query is empty
var shouldHideRoomList: Bool {
bindings.isSearchFieldFocused && bindings.searchQuery.isEmpty
}
}
struct HomeScreenViewStateBindings {