How to add a scene, and its class, to the Storyboard

I added a scene to an existing story board that already has other scenes. I put focus on the new scene, and in the Identity Inspector's "Class" field I gave it a class name. The "Storyboard ID" field did not show in this inspector. Why would it not?

No file named after the class name I gave it appeared in the "Project navigator". Is this supposed to happen automatically? Or must I create this Swift file that contains the class definition for the scene manually?

Accepted Reply

I solved this problem by manually creating the controlling file for the scene. It appears the creation of these is not automatic with the creation of a scene in the story board.

Replies

I added a scene to an existing story board that already has other scenes

Could you show (code and/or screenshots) what you did exactly ? It is hard to understand from the present explanation.

I solved this problem by manually creating the controlling file for the scene. It appears the creation of these is not automatic with the creation of a scene in the story board.