prepare for poping viewcontrollers code example Example: pop the view controller xcode navigationController?.popViewController(animated: true)