Hi Below is the kind of view I need to achieve using UILabel
. I have heard about NSAttributedString
but not sure how to use it for dynamic text loading.
Here the whole text font is Roboto-Light. However, I have to replace text 'Dr Andrew Murphy, John Smith' from the API response for first two doctors and get the count for '23 doctors' from API so that it adjusts in this label accordingly. Text color as you can see depends upon if text is constant or dynamic. I am not sure how to achieve it. Hence some code snippets are really welcome.
Thanks!