pop a view controller swift code example
Example 1: pop the view controller xcode
navigationController?.popViewController(animated: true)
Example 2: swift pop view controller
navigationController?.popViewController(animated: true)
navigationController?.popViewController(animated: true)
navigationController?.popViewController(animated: true)