Long story short, my segue could not be performed to my next controller which i have already created. Much help will be appreciated.
override func viewDidLoad() {
super.viewDidLoad()
var returnValue: Int = UserDefaults.standard.integer(forKey: "quiz1Validation")
if (returnValue == 1)
{
performSegue(withIdentifier: "completed", sender: self)
}
else {
var returnValue: Int = UserDefaults.standard.integer(forKey: "userScore")
scorelabel.text = "Score:\(returnValue)"
RandomQuestions()
}
}