locked
Generate Storyboard custom class in subfolder RRS feed

  • Question

  • User393797 posted

    Good morning.

    I'm trying to create a custom class for a view in my storyboard, I type the name of the custom class and the files are generated, but they are generated in the root folder of the project.

    ¿Is there a way to create the class in a subfolder?

    I tried writting the name of the folder in the module input and the full name of the project and the subfolder.

    ¿Or can I move the custom class after it is created and change the viewcontroller designer reference?

    Sunday, May 10, 2020 10:42 PM

All replies

  • User369979 posted

    We could generate a UIVIewController directly through the storyboard. And then move it to a subfolder as you want this won't change its namespace and could still be recognized by the storyboard. We can also manually add a new view controller in the subfolder through this new item:

    This manually created class could be detected by the storyboard we could use it on the storyboard. But do not forget to remove the auto-generated rootview in that class.

    Monday, May 11, 2020 6:10 AM