In my SwiftUI app I show a list of thumbnails for all images in a directory. I use the following code fragment to generate the thumbnail:
let request = QLThum