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

How to get thumbnail of RichTextEditor #79

Open
Adamekka opened this issue Sep 10, 2023 · 2 comments
Open

How to get thumbnail of RichTextEditor #79

Adamekka opened this issue Sep 10, 2023 · 2 comments

Comments

@Adamekka
Copy link

I am creating a file manager and I need to get the thumbnail of the RTF file, if I use RichTextEditor I don't know how to disable user interactions with that view

PDFDocument has .thumbnail() method, but I couldn't find that method on RichTextEditor

image

@e-hartig
Copy link

Sounds like you might want to use something like SwiftUI's ImageRenderer that draws a view to a bitmap. https://developer.apple.com/documentation/swiftui/imagerenderer

@Adamekka
Copy link
Author

thanks! I'll try it

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

2 participants