RichTextKit
RichTextKit copied to clipboard
How to get thumbnail of RichTextEditor
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
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
thanks! I'll try it