I hope you're all doing great!
I'm working on an iOS app where I need to load a set of images that I've added manually to the app's resource bundle. The images are stored inside a known top-level folder, and within that, there are subfolders, each containing a set of image files.
My goal is to dynamically load all the image files without hardcoding their names, so I can display them to the user in a list or grid.
Here's the folder structure in my Xcode project:
Resources/
└── Stickers/
├── Animals/
│ ├── cat.png
│ └── dog.png
└── Emojis/
├── smile.png
└── wink.png
I'm looking for a way to:
Access the Stickers/ directory from the bundle Loop through all subdirectories Collect the full paths of image files to display Any help or recommended approach would be appreciated!
Thanks in advance 🙏