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
the thing is that image is not UIImage, it's NSURL.
UIImage
NSURL
Change code to this one:
imageView.image = UIImage(data: NSData(contentsOfURL: image as NSURL)!)!