How do I get the filename for an image stored in Assets.xcassets? I've an image named "default" in an "Avatars" folder in my xcassets. How do I get the filename for this image if possible?
I need the filename to send to a server.
How do I get the filename for an image stored in Assets.xcassets? I've an image named "default" in an "Avatars" folder in my xcassets. How do I get the filename for this image if possible?
I need the filename to send to a server.
Files from Assets.xcassets
are compiled into a .car
file by Xcode and have no individual filenames inside your app bundle.
See e.g. Analysing Assets.car file in iOS for details of how such a .car
file looks like.