Styling text in a SearchBar / TextField iOS Swift -


i'm working on ios app using swift. have searchbar/textview (i've tried both) , want split each search term user types in, bubble similar pinterest user can later press cross remove ones.

how start this? can seem change background of whole textfield instead of each word.

here's sample of trying achieve.

here's sample of trying achieve http://www.standingdog.com/blog/wp-content/uploads/2014/04/pinterest-guided-search-screen-shot.jpg

this not formatted text. doing different. when space/enter typed in (and can detect uitextfield delegate), take written text , create view it.

the structure of view similar following:

+ view    + label text    + x (remove) button 

you add view container view. purpose of view keep search term views in list.

you can assign container view [uitextfield leftview].

of course, have handle removal, backspace etc.


Comments