The on-demand resources are contents that are hosted in Apple Store servers and not in the app bundle of the app. When you download the app from App Store, the content will not be available until the app requests them. The app later will request the on-demand resources, and the operating system will take care of downloading and storing the content. The resources types can be of any type, except for executable source code. In this recipe, we will see how to manage the on-demand resources and download them.
Before getting started with on-demand resources, let's get more information about it to help you get a better understanding. Let's take a look at the benefits of using on-demand resources in your app:
Small App Size: The small app size helps the user to download the app fast and gives the limited storage devices the opportunity to download more apps.
Lazy download contents: Some of your app's content is only needed in certain states. Keeping these resources...