What I\'m trying to do:
If you want to perform logic to decide if a segue should be "performed" or not, you need to override shouldPerformSegue. This will allow the OS to (1) kick off things properly and (2) for you to be able to decide if the segue gets done.
override func shouldPerformSegue(withIdentifier identifier: String, sender: Any?) -> Bool {
if [criteria met to perform segue] {
return true
} else {
return false
}
}