File structure is an ever changing spec based on many factors like team size, design pattern, and overall team input. This living document is designed to act as a starting point for exiting and new projects. This will ensure a form of consistency between applications, and ensure smooth management of the project over time.
Feature based folders structure
A feature based folder structure, using MVVM+C, is very similar to using the typical structure that you see in most apps. The key difference being you keep feature based information together.
A typical app most often will typically express their folder as outlined below.
Folder-by-type disadvantages include the following
Folder-by-type include the following
A feature file structure can be expressed like so. The major difference being every feature has the following folders.
Folder-by-feature cons include the following,
Folder-by-feature Pros include the following
The below expresses what this could look like within your app. If it is a file that should be shared with the rest of the app, they should live in the shared directory.
For free consultation on how to organize code files in iOS, click here.
2024-04-23
We have built partnerships for a decade. Collaborate with Utah Tech Labs to build trust together.