D
D
driverx182019-06-13 22:21:07
Swift
driverx18, 2019-06-13 22:21:07

Is there a correct project file structure?

Just getting into Swift (leaving the playground and wanting to go do a project). I want to immediately make it beautiful so that the files are not in the same folder, but everything that is needed in different folders. Is there any recommended structure that should be followed, where should the view controllers, storyboards and other classes be?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Vorobei, 2019-06-13
@driverx18

Depends on the architecture. If the project is not complex, start by separating views, models, and controllers.
enough for your projects.
There is no morality police who will check the order of the folders. With experience comes an understanding of why to do this and the need for more complex patterns / architectures.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question