最新WWDC25里面,关于widget的更新
Asked on 06/16/2025
1 search
在WWDC25中,关于小组件(widgets)的更新有以下几个重要内容:
-
推送更新:小组件现在可以通过推送通知来保持数据的最新状态。这适用于所有支持WidgetKit的平台。推送更新是预算化的,以维护性能和电池寿命。你可以在What’s new in widgets (18:12) 中了解更多关于推送更新的细节。
-
新平台支持:小组件现在可以在Vision OS和CarPlay上使用。在Vision OS中,小组件可以被添加到房间中并固定在表面上,提供了新的交互和动画能力。在CarPlay中,小组件可以在仪表板的左侧以堆栈形式出现,支持触摸屏交互。更多信息可以在What’s new in widgets (01:03) 中找到。
-
相关性小组件:在watchOS 26中,引入了相关性小组件,允许你直接将小组件内容与其相关性连接。这些小组件可以在智能堆栈中显示,并根据其相关性进行排序。详细信息可以在What’s new in widgets (15:31) 中查看。
-
视觉和设计更新:在iOS 26中,主屏幕可以配置为以清晰的玻璃展示小组件,或通过选择特定的色调颜色进行进一步定制。这种新的视觉呈现也适用于macOS Tahoe的桌面和通知中心。
这些更新使得小组件在更多的平台上变得更加有用和灵活。你可以通过观看相关的WWDC25视频来深入了解这些新功能。

What’s new in widgets
WidgetKit elevates your app with updates to widgets, Live Activities, and controls. Learn how to bring your widgets to visionOS, take them on the road with CarPlay, and make them look their best with accented rendering modes. Plus, find out how relevant widgets can be surfaced in the Smart Stack on watchOS, and discover how push notifications can be used to keep your widgets up to date.

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.

What’s new in visionOS 26
Explore exciting new features in visionOS 26. Discover enhanced volumetric APIs and learn how you can combine the power of SwiftUI, RealityKit and ARKit. Find out how you can build more engaging apps and games using faster hand tracking and input from spatial accessories. Get a sneak peek at updates to SharePlay, Compositor Services, immersive media, spatial web, Enterprise APIs, and much more.