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:
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?
I ended up getting this to look exactly what I needed it to look like by using a UITextField, and making it work like a searchDisplayController by overriding the textFieldDidBeginEditing and textFieldDidChange methods
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With