this same error keeps popping up, I have checked all my outlets and everything seems to be fine, except for when I click on the add task button, after which my app crashes and shows me that error..
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func menu(_ sender: UIButton) {
self.performSegue(withIdentifier: "Menu Segue", sender: self)
}
@IBAction func add_TaskButton(_ sender: UIButton) {
self.performSegue(withIdentifier: "Add Task", sender: self)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == "Menu Segue"{
let destinationmenu = segue.destination as! menu
}
/*if segue.identifier == "Add Task"{
let desinationadd = segue.destination as! add_task
}*/
}
}
is it possible to upload my file somewhere so someone can help me out. I've just started programming in swift.