fix:
@State
...
to
@State private var url: URL? = nil
Post
Replies
Boosts
Views
Activity
It appears that in the original application the .quickLookPreview call was placed too low in the view hierarchy, and moving it to the parent fixed the issue
It appears this feature is only available via QLPreviewController.
Related: https://developer.apple.com/forums/thread/759434