Hi,
It is possible to have multiple asset catalogs placed at various levels and locations within an application. In your specific case, it's possible to have an asset catalog placed within the framework that contain the framework-specific assets. Loading the specific data asset from a particular location would require the use of the
init(name:bundle:) initializer of
NSDataAsset (
https://developer.apple.com/documentation/uikit/nsdataasset/1403436-init).As for the other part of the question, there isn't a way to catalog an asset to the exactly subset of devices that support ARKit face tracking. However, an option to get as close as possible to the desired thinning behavior would be to use a combination of some of the supported attributes that mirror the device traits of those devices that have the ARKit support. For example, it would be possible to tag the asset with a combination of
Devices,
Memory and
Graphics attributes that mirrors the capabilities of the target devices within the asset catalog editor interface.
Hope that helps.
Thanks.