2021 EssentialsGraphics & GamesSpatial Computing
WWDC21 · 14 min · Essentials / Graphics & Games / Spatial Computing
AR Quick Look, meet Object Capture
Discover simple ways to bring your Object Capture assets to AR Quick Look while optimizing for visual quality and file size. Explore ways you can integrate AR Quick Look and Object Capture to help create entirely new experiences. To get the most out of this session, we recommend first watching “Advances in AR Quick Look” from WWDC19. You can also learn how to integrate Apple Pay and custom actions with AR on the web through “Shop online with AR Quick Look” from WWDC20.
Watch at developer.apple.com ↗Code shown on screen · 1 snippet
Integrating AR Quick Look in your app
// File: MyPreviewController.swift
func presentARQuickLook() {
let previewController = QLPreviewController()
previewController.dataSource = self
present(previewController, animated: true)
}
// MARK: QLPreviewControllerDataSource
func previewController(
_ controller: QLPreviewController, previewItemAt index: Int) -> QLPreviewItem {
let previewItem = ARQuickLookPreviewItem(fileAt: fileURL) // Local file URL
return previewItem
} Resources
Related sessions
-
28 min -
15 min -
19 min -
59 min -
44 min