title: Swift 4: How can I add a Countdown timer inside of my UIbutton .settitle?
body: <p>I am trying to add a Countdown timer inside of my UIButton in the .settitle. How can I do this? The image below is what I am trying to accomplish.</p>
  
  <p><a href="https://i.stack.imgur.com/jtiEW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jtiEW.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/RCc1i.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RCc1i.png" alt="enter image description here"></a></p>
  
  <p>Then once the timer gets to 0, I want the background color to change to a different color. </p>
  
  <p>Here is the code I have so far.</p>
  
  <pre><code>let sendSMSAgainNumberOfTime: UIButton = {
      let button = UIButton(type: .system)
      button.backgroundColor = .black
      button.layer.cornerRadius = 7
      button.setTitle("SEND SMS AGAIN IN 36", for: .normal)
      button.setTitleColor(.white, for: .normal)
      button.titleLabel?.font = UIFont(name: "open sans", size: 16)
      return button
  }()
  </code></pre>