Put your function in viewWillAppear(). It will be called every time the view appear while viewDidLoad() is called once upon the app starting
Topic:
Programming Languages
SubTopic:
Swift
Tags: