Go back to the previous view controller – Swift

navigationController?.popViewControllerAnimated(true)