skiptools / skip-ui

SwiftUI for Android
https://skip.tools
GNU Lesser General Public License v3.0
128 stars 14 forks source link

Images organized in subfolders in XCode Resources are not displayed on Android #79

Open Sabriel1984 opened 1 month ago

Sabriel1984 commented 1 month ago

Hi guys, I’ve discovered a significant problem with images on Android. So in Xcode I’ve some images organized in subfolders i.e. /Resources/Images/subfolder/sample_image. I show it using Image("sample_image", bundle: .module) and it works perfectly on iOS but in Android this image is unrecognized and not displayed. Of course it is working when I move it to /Resources/Images/sample_image.

joshuakcockrell commented 2 weeks ago

I was able to reproduce this. In my case, I had an icon pack of several hundred svg icons. I had to move all the images up to the top level, so my .xcassets is pretty gross looking now.