Modularizing SwiftUI Projects

Get separate!

Steven Curtis
5 min readNov 13, 2023
Photo by Volodymyr Hryshchenko on Unsplash

In this particular tutorial I want to cover modularization. Specifically I want to cover having a UIComponent library and how this might actually be used in practice to sample what your components might be and integrate them into your project.

Difficulty: Beginner | Easy | Normal | Challenging

This article has been developed using Xcode 12.4, and Swift 5.7.2

Prerequisites:

You need to be able to code in Swift, perhaps using Playgrounds

Don’t bore us, get to it!

Create a new project

Name the main module

This is the entry point to the App and will contain the other modules. Typically this would contain things like modules responsible for networking and shared components (etc.).

Create A Shared Components Framework

--

--