In Swift 2, I had used the following code:
let path = NSBundle.mainBundle().pathForResource("Document", ofType: "pdf")!
let url = NSURL.fileURLWithPath(path)
let path = Bundle.main.pathForResource("Translation", ofType: "pdf")!
let url = URL.fileURL(withPath: path)
Type 'URL' has no member 'fileURL'
URL struct in Swift 3 has an initializer for that
let url = URL(fileURLWithPath: path)