let condition = 99
@IBAction func buttonPressed(sender: UIButton) {
if condition == 1 {
performSegue(withIdentifier: "basicSegue", sender: self)
} else {
// Do nothing
}
}
This is just the example of what's happening in my main firebase project. I'm really grateful for all replies.