How do I create a multi-recipient text box like iMessage?

I am trying to replicate the functionality of selecting recipients in iMessage. If you can enter a phone number or email address in the text box or select from the address book.

I am using SwiftAddressBook Wrapper to access my address book. Created a text box where the user can enter or click a button to open the address book user interface and select an email number or phone number that is presented in the text box as text.

My question is how to represent the selected or typed phone / email as a record and not just text in a text box like iMessage does. IMessage. when you click on an entry, it is selected altogether and you can delete it with backspace. Additional entries with coma separation are also added.

+3


source to share


1 answer


It looks like the term "TokenField". If you are looking for this, you can find some libraries. Here's what looks promising: https://github.com/thermogl/TITokenField



0


source







All Articles