Thanks, that gets me working with the screenshot previews. It does seem like there is still a mildly undesirable behaviour though - in my actual app I now have a ProxyRepresentation for URL and then a FileRepresentation for .image and macOS will still prefer to give me the FileRepresentation for any kind of image file. That means I'm then dealing with a non-original file which is not entirely optimal, but I can live with it.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: