In my app, if a button is pressed, it segues to my ‘Schedule Recording’ Controller.
For additional functionality, I tried adding a switch toggle to show / hide my button depending on whether the user wants to enable / disable the function.
I then added this function which successfully show / hides my button
However, now when I click the button, it crashes and doesn’t segue to the TimeViewController.
What am I doing wrong?