Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

app crash if file url outside xCode project #102

Open
musbah98 opened this issue Jul 7, 2020 · 1 comment
Open

app crash if file url outside xCode project #102

musbah98 opened this issue Jul 7, 2020 · 1 comment

Comments

@musbah98
Copy link

musbah98 commented Jul 7, 2020

I printed url in console
document return nil

Screen Shot 2020-07-07 at 9 08 13 AM

  • iOS Version: 13
  • Xcode Version: 11.5
  • Swift Version: 5
@musbah98
Copy link
Author

musbah98 commented Jul 7, 2020

I just edit how you create link in "PDFDocument" file

was -> self.fileUrl = URL(fileURLWithPath: filePath, isDirectory: false)
after my edit -> self.fileUrl = URL(string: filePath)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant