Closed lichin-lin closed 3 years ago
Hi @subdan, would like to know if there will be any update relative to this feature request, or is there anything I can help with π
Hi. Iβm busy right now. I plan to make this feature in November. Do you know Swift?
we've look into how the process worked in (AssetsProcessor.swift
), it is quite hard to add grouping feature (img/some-img, img/some-img~ipad,...) in with current architecture.
We might need to modify the struct in Image.swift
, (for example, add basename and idiom Property) which seems will make too much changes π
π Feature request
Sometime, Designer might want to have a different kind of image show up for iPad platform compare to iPhone platform for example: different size / different color or shape...etc
will it be possible to support this feature for iOS, so the developer can see something like this (idiom shows either
iphone
oripad
instead ofuniversal
):π‘ Possible solution
To achieve the feature, we can use some kind of naming convention, I suggest that we can make designer control the idioms by using the
~
tilde symbol:as the image shows, we can combine them into same imageset when parsing, and note different idiom in
content.json
.with this tilde naming convention, I think there will be more flexibility for image / icons to show up for different platform.