Can you follow me?
No. Please try to show some code, you know you want to use the text view, then you can show some code.
>Unfortunately, I don't have any code to show because I still don't know where to start.
In that case, you shouldmove this to the'Getting Started' forum. Asking in this specific forum assumes you possess at least some code, and are capable of grasping replies without handholding or being spoon fed.
Sounds like you've been given a specification, but have no experience with making apps....
To highlight, you could just set attributes with underline to each string of name.
To delete the whole name, when you select it by typing inside or just at the end, set the selection to the name (you could find the range by finding positions of commas, or keep track of them in an array…
Have a look here
Highlighting could mean having an underline for example.
Highlighting text like this can be a bit tricky. WWDC 2018 Session 201 Creating Apps for a Global Audience goes into this in detail, but the summary is:
Bold works well for highlighting works
Different text colours work well for highlight characters
Share and Enjoy
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"