init(fileAt:)
Creates an object representing the 3D content that will be previewed in AR Quick Look.
Declaration
init(fileAt url: URL)Parameters
- url:
A file URL to 3D content file (e.g. usdz).
Return Value
The preview object to display in AR Quick Look.
Discussion
This object will be previewed in AR Quick Look using the default behavior:
Start in Object mode without camera passthrough
Display the Share button for 3D content sharing
Allow scaling content in both Object and AR mode
This is a promise to the ARQuickLookPreviewItem class that the URL points to a 3D content file. This class does not deal with the file’s existence or content, and leaves it up to QuickLook to handle and process the URL.