Generate dynamic swift package using traits (original) (raw)

Hello, I'll like to know if there is a way for me to generate kind of dynamic swift package using spm (traits or other way).

My idea would be to :
Have a package "myPackage" which contains two differents sets of images under ressources (every set will have the same image names but differents image styles).
And declare this package as dependency in my main project and be able to load one set of image only during the build phase (avoiding to load the second set).

Do somebody has a solution for me ? Thanks !