Using On Demand Resources with Swift Packages

Hi! I am wondering if there is a way to enable resources from a Swift Package to be stored with the ODR system?

I have tried moving my asset catalogs to a Swift Package and while my tags for each asset were intact, the assets disappeared from the "Resource Tags" tab in the Project Settings.

Is there any other way to make them work? I would love to be able to move these asset catalogs to a package to make the project more modular and this is a blocker for me at the moment.

Replies

Hello witekbobrowski,

On Demand Resources are for non-code resources:

A data file can contain any sort of data except for executable Swift, Objective-C, C, or C++ code.

—jasonag.

  • Hi Jason, thanks for the reply but how does this answer my question? I do not seek to store code as the ODR, only the assets (images, audio files) included in the Swift Package.

  • Hi, would love to get a reply for this :)

Add a Comment