Let\'s say I have a folder in my \"Resources\" folder of my iPhone application called \"Documents\".
Is there a way that I can get an array or some type of list of a
If you have to do with subdirs "Relative to project" (blue folders) you could write:
func getAllPListFrom(_ subdir:String)->[URL]? {
guard let fURL = Bundle.main.urls(forResourcesWithExtension: "plist", subdirectory: subdir) else { return nil }
return fURL
}
Usage:
if let myURLs = getAllPListFrom("myPrivateFolder/Lists") {
// your code..
}