I have a view controller with a UIScrollView
, UIButtons
, UILabels
, and UIViews
. When I visit the same view controller a second time with for example a different label text value, I can still see the objects as they were before when I visited the view controller for the first time. This is the code I use to pop the view controller:
navigationController?.popViewController(animated: true)
dismiss(animated: true, completion: nil)