Create a Modular iOS App in Xcode 13

Split app into modules for cleaner and better organized code

Pavlos Simas
4 min readFeb 4, 2022
Photo by Maik Kleinert from Pexels

Splitting an App into modules could have a lot of benefits. Some of them could be reusability, maintenance and less building time as we don’t have to build the whole project every time we make a change to the code.

In this tutorial we will see how to create an iOS App using modules in Xcode 13.

Workspace

In order to use multiple modules we need to create a new workspace for our project. You can do that by opening Xcode and selecting:

File -> New -> Workspace…

Put a name on your workspace and press done. After creating the workspace you will notice that Xcode does not display anything in the Project navigator. So now it’s time to create our new Project (for this tutorial we called it MyModularApp both project and Workspace)

Main Project

With Xcode opened in our workspace now we need to create a new project. To do that:

File -> New -> Project…

--

--

Pavlos Simas
Pavlos Simas

Written by Pavlos Simas

iOS Developer, with passion about Development, Marketing and Finance. Join Medium from the following link: https://simaspavlos.medium.com/membership

Responses (1)