SwiftNavigation 2.9.0 introduces two new Swift macros. The first, @CaseBindable, lets you derive bindings to individual enum-case payloads, enabling exhaustive switch statements over SwiftUI Binding<Enum> values to extract typed bindings for each case. The second, @UITransactionEntry, reduces boilerplate when defining custom UITransaction keys — mirroring SwiftUI's @Entry macro but for the library's platform-independent UITransaction type. Both macros are back-deployed to iOS 13.
Nguồn: https://www.pointfree.co/blog/posts/215-new-macros-for-swiftnavigation. 8sync News chỉ tóm tắt và dẫn link; bản quyền nội dung thuộc tác giả và nguồn gốc.

SwiftUI introduces several new Toolbar APIs giving developers finer control over toolbar item visibility and behavior across platforms. Key additions include the visibilityPriority modifier for ToolbarContent (with automatic, low, and high options), the ToolbarOverflowMenu type for explicitly collapsing groups of items, the topBarPinnedTrailing placement to keep items pinned to the top bar trailing edge, and the toolbarMinimizeBehavior modifier to minimize navigation, tab, bottom, or window bars on scroll. These APIs help balance SwiftUI's adaptive behavior with explicit developer control across iOS, iPadOS, and macOS.
Point-Free is adopting SwiftPM traits across their Swift libraries to let users opt out of transitive dependencies they don't need. Using SwiftNavigation as a test bed, developers can now specify traits like CasePaths and Perception in Package.swift to avoid pulling in libraries like CustomDump, IssueReporting, and Sharing. The Dependencies library also supports traits to omit clock/Combine scheduler registrations and even Foundation/FoundationNetworking for Wasm and Android targets. Xcode provides a new UI for managing these traits. More libraries, including ComposableArchitecture 2.0, are getting the same treatment.