Create an Image from PDFPage in SwiftUI

Im trying to duplicate the display of the built in Files app for documents in my app.

How do I convert a page in a PDFDocument to an Image to display as an icon like seen here (from Files App) with SwiftUI.

SOLVED:

Image(uiImage: (document.page(at: 0)?.thumbnail(of: CGSize(width: 100, height: 100), for: .cropBox))!)