I've searched for a solution to this problem, even tried following a few tutorials to try to solve this, but for some reason I'm ending up with the same issue. I'm attempting to pass a custom object to a different view controller, but every time I try I get the error "Value of type 'UIViewController' has no member 'newExerciseDelegate'"

My delegate: 

```
protocol exerciseDelegate {
func savedExercise(newExercise: Exercise)

```

}

my sending VC uses the following code: 

```
var newExerciseDelegate: exerciseDelegate!
.
.
.
@IBAction func saveExerciseWasPressed(_ sender: UIButton) {
    if (checkFields() == true){
        newExercise = Exercise(name: exerciseNameField.text!, weight: Int32(weightField.text!)!, reps: Int32(numberOfRepsField.text!)!, sets: Int32(numberOfSetsField.text!)!, muscleGroupFocus: .cardio)
        newExerciseDelegate.savedExercise(newExercise: newExercise)
        dismiss(animated: false, completion: nil)
    }
}

```

My receiving VC uses the following code:

```
    @IBAction func addExerciseBtnWasPressed(_ sender: Any) {
    guard let newExerciseVC = storyboard?.instantiateViewController(withIdentifier: "NewExerciseVC") else { return }
    newExerciseVC.newExerciseDelegate = self // error present on this line
    presentDetail(newExerciseVC)
}

```

I'm sure it's a stupid mistake, but I'm not seeing it. Any help is appreciated, thank you.