Trying to figure the path to the images with swift code. I got this that I think works in objective C.
[UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"%@/%@.png", [[NSBundle mainBundle] resourcePath], imgName]];
To get the path for my .png image I stored in assets.xcassets. But I need to do so in SWIFT now, not objective C.
I need the path cause I am trying to upload the image I put there to an CKAsset
in iCloud.