skip icon indicating copy to clipboard operation
skip copied to clipboard

Include a resource for one platform and not another

Open dfabulich opened this issue 9 months ago • 0 comments

https://github.com/orgs/skiptools/discussions/370#discussioncomment-12467273

There are a bunch of images (and other resources) available on one platform but not another. For example, star.leadinghalf.fill is available on iOS as a system image, but the only Material Icon for half stars requires you to download the image and embed it as a drawable.

It is possible to add those resources to an xcassets file, which will make them available on both platforms. But I don't want to embed the Material Icon in my iOS app; I just want to use the system image on iOS. Embedding the Material Icon bloats my iOS bundle.

It would be better if I could add platform-exclusive resources and use them from Skip code.

(In this case, Material Icons are pretty small, so it's probably no big deal.)

dfabulich avatar Mar 12 '25 00:03 dfabulich