Search code examples
iosxcodeswift4xcode9

custom viewcontroller from storyboard cannot be found in project structure


I created a new ViewController on main.storyboard, labels, buttons added manually, but I did not see this viewController in the project structure to customize it programatically and move it to the view folder.

Is it a bug, or I missed something? Thanks!


Solution

  • You should create a new file for every viewcontroller you add to the storyboard.

    enter image description here