SVG Assets: Load Downsampled version in UIImage

Hi,

I have some SVG assets that are natively in 512x512 resolution. I want to use 20 of them in a Widget context where memory consumption must be kept low (due to 30MB Memory limit in extensions).

As in that widget context, the images are display in small size (they are displayed in full size in the app) I would like to load a downsampled version of the images (let say 32x32).

Is there any way to achieve that? (perhaps with configuration or traitCollection)

I could resize them after having loading them full size but it will nevertheless create a memory peak consumption while resizing all the images...

Thanks in advance for the help.

PS: I really want to avoid to generate smaller preview images just for that purpose but if I can't find a better solution I could ask the app to generate thumbs for all images at first startup and use these thumbs in the widgets...

Clement