RichTextKit icon indicating copy to clipboard operation
RichTextKit copied to clipboard

How to get thumbnail of RichTextEditor

Open Adamekka opened this issue 2 years ago • 2 comments

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

Adamekka avatar Sep 10 '23 17:09 Adamekka

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

e-hartig avatar Sep 11 '23 14:09 e-hartig

thanks! I'll try it

Adamekka avatar Sep 11 '23 17:09 Adamekka