I have a strange problem, I am trying to build an action extension that will scan barcode from the image provided. Here is the code.
override func viewDidLoa
Getting image as
, {100, 100}
It cannot be casted as NSURL and getting nil in the following expression.
NSURL
nil
imageView.image = UIImage(data: NSData(contentsOfURL: image as NSURL)!)!