Are these features supported by frameworks? as an example, i have a data file that is ony required for devices that do not support ARKit face tracking configuration, how can i tag it so the user gets an app store version of the app with/without the tagged framework specific data file?
PS: The data file should be in the framework, it cannot be at app top level.
Thanks
PS: The data file should be in the framework, it cannot be at app top level.
Thanks
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.
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.