updateSearchState

Updates the view appearance according to the given state, such as the visibility of the clear icon, the search indicator etc.