I need to refresh a view controller when a certain button is tapped. Simply activating viewDidLoad() does not seem to be working for what I need to
view controller
viewDidLoad()
Swift 5.2
The only method I found to work and refresh a view dynamically where the visibility of buttons had changed was:-
viewWillAppear(true)
This may be a bad practice but hopefully somebody will leave a comment.