I have a project from which I am transitioning from Obj-C to Swift 3.0 (and I'm fairly new to Swift).
How to translate this line?
NSString *folder = [[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"myfolder"];
I managed to get the path to the resources:
let resoursePath = Bundle.main.resoursePath;
But how do I get the path to a subfolder called "myfolder"? I need to get the path to a subfolder, not the file inside it.
source
share