Is there any kind of restriction when accessing image through widgets extension? I have an image within Widget extension Supporting Files group called pocket.png
I want to use this image through by Widget custom view controller and as usual i wrote this code
var pocketImage:UIImage = UIImage(named: "pocket")
To my surprise this code returns blank. Tried with pocket.png same problem.
Now i tried to do with image with path and even the below code returns nil
let pathx = NSBundle.mainBundle().pathForResource("pocket", ofType: "png")
So how do i access local available image? Note: The same code works fine when i use it in the main application with its local image.