Search code examples
xcodeorganization

Organizing an iOS App with Storyboards


I'm new to iOS programming and being the organizational freak that I am, I'd like to have a good clean structure for everything I am working on.

  1. Should I create real folders to represent the groups that I have created in Xcode and organize my code that way?
  2. Should I rename the groups I have now to any other names?
  3. I am going to be needing an API, where should I put it?

Here's my current layout:

enter image description here

This project is open source: https://github.com/kirkouimet/enzyme


Solution

  • It's really up to you. It's sort of subjective, but usually Xcode's project templates provide a good start. Generally, I prefer Groups over literal folder references with the exception of the first couple of root-level directories.

    Here's the typical file-system structure for my projects:

    enter image description here

    And here's what my Xcode project structure typically looks like:

    enter image description here