0

How do I open the .swift file for ViewController below, on the left?

I'm ultimately following question for how to access text in UITextField but don't know how to open the ViewController to do it.

enter image description here

Doug Null
  • 7,989
  • 15
  • 69
  • 148
  • there is no controller named "ViewController", so first set correct one in IB then you should redirect when you pressed right arrow as @Donat Kabashi mentioned – emrcftci Jan 06 '22 at 16:04
  • [This works for me: Add the view controller manually](https://stackoverflow.com/questions/28587577/how-do-i-create-a-view-controller-file-after-creating-a-new-view-controller) – Doug Null Jan 06 '22 at 16:30

1 Answers1

0

Just press the button at the right inspector.

Button that opens the view controller

In case you deleted or renamed that view controller, you should rename the class of the respective view controller in storyboard.

Donat Kabashi
  • 384
  • 4
  • 10