I have a iOS project with a folder/group structure like this:
Xcode copies lesson.xml
to my bundle without the enclosing folders, so I need to load it like this:
let url = Bundle.main.url(forResource: "lesson", withExtension: "xml")
But I'd like the folders in the bundle, so I can have multiple lesson.xml files and load them like this:
let url1 = Bundle.main.url(forResource: "Lessons/Hello/lesson",
withExtension: "xml")
let url2 = Bundle.main.url(forResource: "Lessons/Foo/lesson",
withExtension: "xml")
How do you copy a folder structure to the bundle?