I have a collection view that I would like to be searchable. On top of this, if a user types in something that isn't in the collection view, I would like it to go ahead and search the database for it.
Currently I'm using a SearchController and am trying to heavily customize the UISearchBar that comes with a SearchController to look like this:
I've gotten it to look like this so far:
Some of the problems I'm currently running into with the UISearchBar are:
- Having the text initially appear on the left side before the user clicks on the search field
- Positioning the text in the search field to be a little lower
- Making the image that I replace the default search icon with not expand to the initial search icon's height (that's why it looks blurry)
Would it make more sense for me to just use a UITextField instead of a SearchController or is there a way I can replace the UISearchBar that comes with the SearchController with a UITextField?