When my app gets back to its root view controller, in the viewDidAppear: method I need to remove all subviews.
viewDidAppear:
How can I do this?
Using Swift UIView extension:
UIView
extension UIView { func removeAllSubviews() { for subview in subviews { subview.removeFromSuperview() } } }