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?

Answered by spflanze in 758508022

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.

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.

Accepted Answer

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.

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