As per my understanding, viewDidLoad() is called when the view is created and used for things that need to happen once whereas viewWillAppear() is used for tasks that require to repeat every time a VC comes on screen.
What is the difference in tasks doing them once and repeating whenever VC comes on a screen?
Currently, I have a View with a bunch of UILabels and UITextFields. Technically, I need to only create and set the text only once but each time you visit that View it will need to be done. Would that logic make sense more in a viewWillAppear() in comparison to a viewDidLoad().
My reasoning to put them in viewDidLoad() was that they only need to happen once. Then again, you can argue that each time you're on that specific View it will need to happen each time. Unsure if my understanding is correct or not...or if I'm overthinking
