Reputation: 25109
I was wondering if there is any best practices or conventions to structure your iOS projects?
Thanks.
Upvotes: 21
Views: 17338
Reputation: 8134
I've been using a similar one to the following for my projects.
But after going through this thread and some other articles online, I decided to categorize few types under a new folder code UI.
But if you are using MVVM architecture, please customize this to your best fit.
Cheers!
Upvotes: 1
Reputation: 14292
We follow a standard project structure so as the team can understand in a better way.
Upvotes: 0
Reputation: 14243
Although I agree that most common practice is to have files grouped by types (i.e. ViewControllers, Models etc.), I would add that there are some business cases where it is more useful to organize code by provided functionality. For example if you work for company that offers multiple combination of services, usually packed into different apps that share some of elements, for example - AddressBook, Messages, Document Management, etc...
In my projects I usually have a folder called Common where I put things that I reuse often, like datetime helpers, IO writers etc... Other things I separate by functionality.
Upvotes: 0
Reputation: 51
As for me, Architecting iOS Project solution works perfectly. I also added Cocoapods.
Now my project looks like:
Upvotes: 4
Reputation: 4673
Taken from iOS Coding Best Practices Slideshare from Jean-Luc David:
Upvotes: 9