This project is a companion to our blog post about app modularisation: read blog post
If you want more information on the structure of this project please check the link first.
To explore the project just open MyFirstModule.xcworkspace.
The workspace has several sub projects:
App contains the main app bundle.
Modules contains two distinct sets of feature: Chat and UserProfile.
Service and Utils contain things shared by all the features.
Dependendencies is where you'll find the public protocol for all modules.
This can be a base for a new project where you want to provide a basic support for modularisation. If you don't think your project will need this complexity then start simple and adopt something similar later.
Try to add navigate to move the logic to return the currentUser from the AppDelegate inside the UserProfile module.
What if you want to acccess this information from within the Chat module?
Get in touch! Any feedback or comment is welcome.
Just open a new issue from the repo page.
Thank you!
Depop iOS Team