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

Is there any way open epub file form local not direct from url?. #1

Open
pinturajput91 opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@pinturajput91
Copy link

pinturajput91 commented Oct 16, 2024

I tried to import epub file on my project and was trying to open file but does not works for me.
Nothing happening.
sample code:

Task { @MainActor in
            let readerController = ReaderViewController(theme: .dark, eventsHandler: self)
            if let path = Bundle.main.path(forResource: "accessible_epub_3", ofType:"epub") {
                // use path
                try? await readerController.loadBook(url: URL(fileURLWithPath: path))
            }else {
                print("EPUB file not found in the bundle")
            }
        }
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