I have a label in a custom cell which displays some info. The info will different in every cell and I would like to change the colour of a few 'keywords' inside the label so that they stand out.
I've tried the approach of converting the text to a NSMutableAttributedString
and changing the colour of the text at a certain index. However, the location of the keyword in the text is different in every sentence. Is there any way to add something around the keywords so that they can be identified easily?
Edit: This answered my question:
Changing specific text's color using NSMutableAttributedString in Swift