How to disable the download option from Quicklook PreviewApplication?

Hi,

Following the wwdc24 video - What’s new in Quick Look for visionOS, I've managed to open a 3D model using PreviewApplication by calling

let previewItem = PreviewItem(url: modelURL, displayName: "Easter", editingMode: .disabled)
_ = PreviewApplication.open(items: [previewItem])

However, the "Save to Downloads" option is aways there(see attached screenshot). As the models are user generated content, and I don't want the download option to be available to all users. How to disable it?

Hi @kevin_wang

There is no way to remove this option in the Quicklook application, please file a feature request using the Feedback Assistant if this is something you'd like to see.

It's true QuickLook provides a lot of out-of-the-box functionality for previewing content to users, but I suspect for the experience you are trying to achieve it may make more sense to go with a Model3D view or a RealityView with ModelEntities. Can you share a bit more about how you'd like to display your 3D models to your users? The Diorama sample, for example, goes over loading and displaying a 3D model in front of the user in an immersive space, which seems similar to what you'd like to do.

Hi @Vision Pro Engineer

Thanks for the info. I have an app on the app store that allows users to create and share spatial content, and one of which is 3D model.

Currently I'm using a RealityView wrapped in a Volumetric Window to display 3D models in the user's space, scaled and repositioned in the centre of the volume according to their bounding boxes. However, there are a few limitations, such as:

  • For animated models, the animation might cause the model to go out of the bounds of the volume.
  • Window management issues, e.g. when the user opens a volumetric window, and closes the app in the order of closing the main window first and then closing the volumetric window, when they reopens the app, it's always shows the volumetric window and they'll never be able to open the main window again(unless add additional logic).

I'm now migrating the app to set visionOS 2.0 as the minimum deployment target. And the Quicklook preview application has many nice built-in features, such as snapping to surface, free scaling, gesture handling, etc.

I would love this feature as well. Has a feature request been submitted already? I would hate to develop my custom view for spatial photo, spatial video and panorama photo just so I can replicate quicklook, but without giving users ability to download my assets.

How to disable the download option from Quicklook PreviewApplication?
 
 
Q