Tell me how you can also format the text (green subtitles) in the cell TableViewController as example number 1, I want to apply in my application (Photo 2)

Example 1

Example 2

  • Is this all in one cell? Is this one label? - Vitali Eller
  • The fact that between Ingredients and Method is one cell and one UILabel - Ispai Nurlan

1 answer 1

If you have a UILabel , use NSAttributedString . An example of how to put green dots:

 let attrStr = NSAttributedString(string: "• ●", attributes: [NSForegroundColorAttributeName: UIColor.green]) lblSomeLabel.attributedText = attrStr 

Next, format as you need and then display.