Swift iOS search bar loads custom view -


i designing ios app swift looks in picture.

when user taps on search bar (first image), new view should appear (second image) while search bar stays focused. when user puts in search query expanded view shall updated. when user selects result, expanded view should go away , show table view updated results (third image).

how can model custom search bar behavior?

enter image description here

i think best way achieve scheme create 2 view..let's example , b.

in view there searchbar , tableview different cell. when searchbar got focused or clicked view b presented. when cell selected, view presented calling maybe api new data


Comments