WWDC Quick Look 💓 By SwiftGGTeam
WWDC22 Day 2 recap

WWDC22 Day 2 recap

Watch original video

Highlight

Day 2 highlights the release of SwiftUI navigation new API, Xcode 14 improvements, Apple framework plug-in for Unity, RoomPlan 3D scanning, SF Symbols multi-color support, and iOS Push to Talk framework.

Core Content

SwiftUI navigation upgrade

Day 2 starts with a new solution for SwiftUI navigation. iOS 16 introducesNavigationStackandNavigationSplitView, which solves the pain points of the previous navigation API in multi-platform adaptation. (00:09)

NavigationStackreplaced the originalNavigationView, supports programmatic navigation and deep linking.NavigationSplitViewProvides native multi-column navigation layout for iPad and Mac, no longer need to use it yourselfHStackput together.

Xcode 14 improvements

Xcode 14 brings several developer experience improvements. Compilation is faster, especially incremental compilation of Swift projects. The interface has also been adjusted, and developers can choose the level of information density that suits them. (00:15)

Unity + Apple Framework

Apple has launched an official plug-in for Unity developers, allowing Unity games to connect to Apple frameworks such as Core Haptics, Game Center, and ARKit. Core Haptics plug-ins take gaming haptic feedback to new levels of immersion. (00:22)

RoomPlan 3D Scan

RoomPlan is a new framework that uses LiDAR scanners to quickly create 3D models of indoor spaces. The scanning process is automated and the 3D model is output in USDZ format. Apple calls it “a powerful new way to bring the real world into apps.” (00:34)

SF Symbols multi-color support

SF Symbols 4 introduces a multi-color rendering mode, allowing developers to use colors to express richer meanings in symbols. The system automatically applies the appropriate color gradation based on the semantics of the symbol. (00:43)

Push to Talk framework

iOS 16 adds a Push to Talk framework, allowing apps to implement walkie-talkie functions. The user holds down the button to speak and releases to send. This framework manages background audio and permissions, and developers only need to handle business logic. (00:49)

Detailed Content

Technical topic classification

Day 2 Sessions can be classified by technology stack:

Must-read for SwiftUI developers:

  • NavigationStack/NavigationSplitView: complete rewrite of the navigation system
  • New Layout protocol: the official solution for custom layouts
  • Swift Charts: Declarative charts

Game Developer Attention:

  • Unity Apple plug-ins: Core Haptics, Game Center, ARKit
  • Metal 3: New rendering features

AR/Spatial Computing Developers Attention:

  • RoomPlan: room scanning and modeling
  • Object Capture improvements

Toolchain upgrade:

  • Xcode 14: Compiler, interface, debugging
  • Swift Package Manager plugin

If you are usingNavigationView, migrate toNavigationStackThe priority depends on the project complexity. New projects can use the new API directly, and old projects can be migrated gradually.NavigationSplitViewOnly makes sense on iPad and Mac, folds automatically on iPhone.

Core Takeaways

  • Indoor Space Measurement Application: Use RoomPlan to scan the room to generate a 3D model, automatically calculate the area, and generate a preview of furniture placement. Real estate, decoration, and furniture apps can be directly integrated. The entry API isRoomCaptureViewandRoomBuilder

  • Intercom function integration: Add Push to Talk function to collaboration apps, such as construction site management, event coordination, and team collaboration. The press-and-talk experience is more immediate than traditional voice messaging. The entry API isPushToTalkManager

  • Multi-color icon system: Use the multi-color rendering mode of SF Symbols to design a semantic icon system for the App. Different states are expressed with different color levels to increase the information density of the interface. The entry API isImage(systemName:)Cooperate.symbolRenderingMode(.multicolor)

  • Unity game tactile upgrade: If it is an iOS game developed by Unity, connect to the Core Haptics plug-in to design detailed tactile feedback for different game events. Such as the recoil of shooting, the light touch of picking up items, and the shock of explosions. The entry API is Unity’s Core Haptics plugin.

Comments

GitHub Issues · utterances