swift pop current view controller code example Example: swift pop view controller navigationController?.popViewController(animated: true)