title: Displaying Live Time Label in Swift 4?
body: <p>My time label is displaying the time, when I open my app but it won't update it live. I had a look at other answers but they didn't make sense.</p>
  
  <pre><code>// CURRENT TIME
  
      @IBOutlet weak var currentTimeLabel: UILabel!
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          getCurrentTime()
      }
  
  // FORMAT TIME
  
  func getCurrentTime(){
          let formatter = DateFormatter()
          formatter.dateFormat = "hh:mm"
          let str = formatter.string(from: Date())
          currentTimeLabel.text = str
      }
  </code></pre>
  
  <p>I want my app to update the time label live. Thanks in advance. It's probably a really simple fix.</p>