On demand module download

I am working on an iOS app and I want to achieve on demand module download inside the app when the user clicks on the module icon which he wants to use.

The idea is that we have a super app consisting of multiple modules say four independent apps/features and I want to separate each one so that when the user selects a specific app/feature, it’s downloaded on demand and then opened directly within the same super app resulting in a lower app size initially

I want to upload all the code of all modules to app store connect but when the user downloads the app, then only one module's code should be available to the user, the rest of the module's code should be downloaded when the user wants to use that module. I know apple restricts downloading new code but in my case I want to upload all the code to app store for review but just give option to the user to get rest of the code when needed. Any guidance, architectural advice, or example implementations would be highly appreciated.

All code must be bundled as part of the app. None of the code can be downloaded on demand. Background Assets, and the On-Demand Resources feature that is now deprecated, are both focused on enabling you to host downloadable non-code assets.

— Ed Ford,  DTS Engineer

On demand module download
 
 
Q