title: How to customize UILabel with different Font Size and Color with multiple Variables together
body: <p>I'm trying to put <strong>3 variables in the same UILabel to make emphasis on the second word.</strong></p>
  
  <p>With one variable it work's fine. (Option 1)</p>
  
  <pre><code>    //Option 1 That work with one variable
      labelBoldAnswer.attributedText = secondWordBoldRed
  </code></pre>
  
  <p><strong>THE RESULT 1 IS</strong>: Bold and Red</p>
  
  <p><img src="https://i.stack.imgur.com/Cgobj.png" alt="enter image description here"></p>
  
  <pre><code>import UIKit
  </code></pre>
  
  <p>class ViewController: UIViewController,UITextFieldDelegate {</p>
  
  <pre><code>@IBOutlet weak var textFieldOriginal : UITextField!
  @IBOutlet weak var labelBoldAnswer   : UILabel!
  
  @IBAction func ButtonBold(sender: AnyObject) {
  
      var firstWord   = "First Word"
      var thirdWord   = "Third Word"
  
      var attrs      = [NSFontAttributeName: UIFont.boldSystemFontOfSize(20), NSForegroundColorAttributeName: UIColor.redColor()]
      var secondWordBoldRed = NSMutableAttributedString (string:textFieldOriginal.text, attributes: attrs)
  
      //Option 1 That work with one variable
      labelBoldAnswer.attributedText = secondWordBoldRed
  
      //Option 2 That work partialy
      //labelBoldAnswer.text = ("\(firstWord), \(secondWordBoldRed), \(thirdWord)")
  </code></pre>
  
  <p>}</p>
  
  <p><strong>SECOND TRY</strong></p>
  
  <p>With three variables, it show's all the text with code instead of showing bigger text and red in the center of the First and Third word. (Option 2)</p>
  
  <pre><code>//Option 2 That work partialy
      labelBoldAnswer.text = ("\(firstWord), \(secondWordBoldRed), \(thirdWord)")
  </code></pre>
  
  <p><strong>THE RESULT 2 IS NOT PERFECT</strong>: </p>
  
  <p><img src="https://i.stack.imgur.com/CimhS.png" alt="enter image description here"></p>
  
  <pre><code>import UIKit
  </code></pre>
  
  <p>class ViewController: UIViewController,UITextFieldDelegate {</p>
  
  <pre><code>@IBOutlet weak var textFieldOriginal : UITextField!
  @IBOutlet weak var labelBoldAnswer   : UILabel!
  
  @IBAction func ButtonBold(sender: AnyObject) {
  
      var firstWord   = "First Word"
      var thirdWord   = "Third Word"
  
      var attrs      = [NSFontAttributeName: UIFont.boldSystemFontOfSize(20), NSForegroundColorAttributeName: UIColor.redColor()]
      var secondWordBoldRed = NSMutableAttributedString (string:textFieldOriginal.text, attributes: attrs)
  
      //Option 1 That work with one variable
      //labelBoldAnswer.attributedText = secondWordBoldRed
  
      //Option 2 That work partialy
      labelBoldAnswer.text = ("\(firstWord), \(secondWordBoldRed), \(thirdWord)")
  </code></pre>
  
  <p>}</p>
  
  <p>Thank's  for your help!</p>