How to update/display data (for example image) based on the time range in Swift? : For example I want the Image named "Something" to be displayed from 9:00 till 11:00. Then, Image will be changed, and a new Image "Something else" will be displayed from 11:00 till 13:00 and so on. 

I found some related solutions : [here][1] and [here][2], but they have old syntax and a having a bit different purpose.

Could You help me please.

Thank You in advance.


  [1]: http://stackoverflow.com/questions/38701071/swift-displaying-the-time-or-date-based-on-timestamp
  [2]: http://stackoverflow.com/questions/37870076/how-to-display-an-alert-controller-when-nsdate-to-a-time-for-example-1200-a