Files
nexus/wiki/concepts/Spatial-Widgets.md

1.3 KiB
Raw Blame History

title, type, tags, sources, last_updated
title type tags sources last_updated
Spatial Widgets concept
visionos-spatial-engineer
2026-04-25

Definition

visionOS 26 引入的小组件系统,可吸附于 3D 空间中的墙面、桌面等表面,并持久化放置在物理位置,无需应用处于前台运行即可展示。

Core Characteristics

  • Spatial Placement空间放置:通过 SwiftUI API 定义 widget 在 3D 空间中的精确位置
  • Surface Snapping表面吸附:自动识别并吸附到墙面、桌面等物理表面
  • Persistent Presence持久化存在Widget 保留在设定位置,用户返回时仍然可见
  • Cross-App Usage跨应用使用:作为系统级功能,所有应用可共享 widget 展示

Implementation Technologies

  • WidgetKit for visionOSApple Widget 框架的 visionOS 扩展
  • SwiftUI Volumetric Widgets:支持 volumetric 展示模式的 widget 类型
  • 3D Positioning API:定义 widget 在空间中的精确位置和朝向

Sources