在 Widget 中是否可以使用 Spatial Scenes
Asked on 06/19/2025
1 search
在 WWDC 2025 的内容中,Apple 介绍了在 VisionOS 中使用 Spatial Scenes 的能力。根据 Platforms State of the Union 中的介绍,RealityKit 的图像展示组件可以将 2D 图像转换为 3D 空间场景,这利用了设备上的生成式 AI 算法来创建图像的 3D 表示。这种能力可以在应用中使用,以优化从多个视角进行的实时渲染。
此外,VisionOS 26 引入了新的 API 和功能,使得在应用和游戏中创建突破性的空间体验成为可能。这包括新的体积 API 和增强的 SwiftUI API,使得构建引人入胜的 3D 布局更加容易。
因此,虽然在 Widgets 中直接使用 Spatial Scenes 的具体细节没有明确提到,但 VisionOS 提供了将 2D 内容转换为 3D 空间场景的能力,这可能为 Widgets 的开发提供了新的可能性。

Keynote
Don’t miss the exciting reveal of the latest Apple software and technologies.

Platforms State of the Union
Discover the newest advancements on Apple platforms.

What’s new in SwiftUI
Learn what’s new in SwiftUI to build great apps for any Apple platform. We’ll explore how to give your app a brand new look and feel with Liquid Glass. Discover how to boost performance with framework enhancements and new instruments, and integrate advanced capabilities like web content and rich text editing. We’ll also show you how SwiftUI is expanding to more places, including laying out views in three dimensions.