This is my #SwiftUI app. It looks a bit different from the usual, doesn't it? 😊

It's my take on an app where Swift Package modules integrate seamlessly. Modules can be added or removed, and the application will still function properly. 🧩

Let's dive deeper! 💡
#DevDiary #Swift

Every #Module represents a target located in a #SwiftPackage. There are three types:

🏗️ Core: An architecture-only module that can be reused in any app.

🔄 Commons: Shareable modules providing global logic.

🚀 Features: Modules that provide specific behavior.

#BuildInPublic

The Common module provides project-specific behaviors essential for creating business logic. These are used alongside the Core in Features.

Features are independent and do not interact with each other. If one feature module needs to be accessed by another, it must be registered.

In my experience, the fewer targets a #SwiftPackage has, the better. 🚀

To facilitate function separation, I created Assembly - submodules that enable code separation within the module. 🧩

Tomorrow, I will show you one of the assemblies. 💡

#BuildInPublic #DevDiary #Swift #SPM