iOS & iPadOS 16.2 Release Notes
Update your apps to use new features, and test your apps against API changes.
Overview
The iOS & iPadOS 16.2 SDK provides support to develop apps for iPhone and iPad running iOS & iPadOS 16.2. The SDK comes bundled with Xcode 14.2, available from the Mac App Store. For information on the compatibility requirements for Xcode 14.2, see Xcode 14.2 Release Notes.
SwiftUI
New Features
Disable animations of
NavigationStackpush and pop by wrapping path mutation inwithTransaction(transaction) { … }wheretransactionhasdisablesAnimationsset totrue. (88993253)
Deprecations
In order to improve compiler type-checking performance, we’ve deprecated some
Tableinitializers. They’re replaced with initializers which require an additional parameter that explicitly specifies the type they generate their contents from. This improves type-check performance by avoiding the need to infer a shared type from the bodies of separate closure parameters. For now, these initializers are deprecated. In a future release, those deprecation warnings will become errors. The new initializers add the parameterof:.The new initializers add the parameter
of:. The following shows a Table before, and after adoption of the new API:// before (will now produce an error): Table { TableColumn("Name", value: \.name) TableColumn("Email", value: \.email) } rows: { ForEach(people) { person in TableRow(person) } } // after: Table(of: Person.self) { TableColumn("Name", value: \.name) TableColumn("Email", value: \.email) } rows: { ForEach(people) { person in TableRow(person) } }(101009480)