I\'m trying to have the app go to a different view controller after the user chooses a photo from the picker.
func imagePickerController(_ picker: UIImagePickerC
add this to your function
dismiss(animated:true, completion: nil)
In the completion, you can define a closure that does whatever you want.