SwiftUI iOS 16.0 20A5303f to 20A5312e API Differences

AsyncImagePhase
Modified AsyncImagePhase.error
Replacement
Frompublic var error: Swift.Error? { get }
Topublic var error: (_: some Swift.Error)? { get }

AutomaticLabeledContentStyle
Removed AutomaticLabeledContentStyle.body(configuration:)
Added AutomaticLabeledContentStyle.makeBody(configuration:)
CustomizableToolbarEdits
Added CustomizableToolbarEdits
FocusedObject
Added FocusedObject
Added FocusedObject.init()
Added FocusedObject.projectedValue
Added FocusedObject.wrappedValue
Added FocusedObject.Wrapper
Added FocusedObject.Wrapper.subscript(dynamicMember:)
NavigationPath
Modified NavigationPath.CodableRepresentation.init(from:)
Replacement
Frompublic init(from: Swift.Decoder) throws
Topublic init(from: some Swift.Decoder) throws

Modified NavigationPath.CodableRepresentation.encode(to:)
Replacement
Frompublic func encode(to: Swift.Encoder) throws
Topublic func encode(to: some Swift.Encoder) throws

NavigationSplitViewVisibility
Modified NavigationSplitViewVisibility.init(from:)
Replacement
Frompublic init(from: Swift.Decoder) throws
Topublic init(from: some Swift.Decoder) throws

Modified NavigationSplitViewVisibility.encode(to:)
Replacement
Frompublic func encode(to: Swift.Encoder) throws
Topublic func encode(to: some Swift.Encoder) throws

TableHeaderRowContent
Added TableHeaderRowContent.tableRowBody
Modified TableHeaderRowContent.TableRowBody
Replacement
Frompublic typealias TableRowBody = Swift.Never
Topublic typealias TableRowBody = <UNKNOWN>

Toggle
Modified Toggle.init(isOn:label:)
Replacement
From@available(iOS 16.0, macOS 13.0, tvOS 16.0, watchOS 9.0, *)
To@available(iOS, introduced: 16.0, deprecated: 16.0, message: "Use Toggle.init(sources:isOn:label:).") @available(macOS, introduced: 13.0, deprecated: 13.0, message: "Use Toggle.init(sources:isOn:label:).") @available(tvOS, introduced: 16.0, deprecated: 16.0, message: "Use Toggle.init(sources:isOn:label:).") @available(watchOS, introduced: 9.0, deprecated: 9.0, message: "Use Toggle.init(sources:isOn:label:).")

Added Toggle.init(sources:isOn:label:)
ToolbarCustomizationPriority
Added ToolbarCustomizationPriority
Added ToolbarCustomizationPriority.`default` /* static */
Added ToolbarCustomizationPriority.high /* static */
Added ToolbarCustomizationPriority.low /* static */
Added ToolbarCustomizationPriority.medium /* static */
ToolbarTitleActions
Modified ToolbarTitleActions
Replacement
From@available(iOS 16.0, macOS 13.0, watchOS 9.0, tvOS 16.0, *)
To@available(iOS, introduced: 16.0, deprecated: 16.0, renamed: "ToolbarTitleMenu") @available(macOS, introduced: 13.0, deprecated: 13.0, renamed: "ToolbarTitleMenu") @available(tvOS, introduced: 16.0, deprecated: 16.0, renamed: "ToolbarTitleMenu") @available(watchOS, introduced: 9.0, deprecated: 9.0, renamed: "ToolbarTitleMenu")

ToolbarTitleMenu
Added ToolbarTitleMenu
Added ToolbarTitleMenu.init()
Added ToolbarTitleMenu.init(content:)
Added ToolbarTitleMenu.Body
UIHostingConfiguration
Modified UIHostingConfiguration.makeContentView()
Replacement
Frompublic func makeContentView() -> UIKit.UIContentView & UIKit.UIView
Topublic func makeContentView() -> some UIKit.UIContentView & UIKit.UIView

Modified UIHostingConfiguration.updated(for:)
Replacement
Frompublic func updated(for: UIKit.UIConfigurationState) -> SwiftUI.UIHostingConfiguration<Content, Background>
Topublic func updated(for: some UIKit.UIConfigurationState) -> SwiftUI.UIHostingConfiguration<Content, Background>

UIHostingController
Modified UIHostingController.preferredContentSizeDidChange(forChildContentContainer:)
Replacement
From@_Concurrency.MainActor(unsafe) @objc dynamic open override func preferredContentSizeDidChange(forChildContentContainer: UIKit.UIContentContainer)
To@_Concurrency.MainActor(unsafe) @objc dynamic open override func preferredContentSizeDidChange(forChildContentContainer: some UIKit.UIContentContainer)

Modified UIHostingController.viewWillTransition(to:with:)
Replacement
From@_Concurrency.MainActor(unsafe) @objc dynamic open override func viewWillTransition(to: CoreFoundation.CGSize, with: UIKit.UIViewControllerTransitionCoordinator)
To@_Concurrency.MainActor(unsafe) @objc dynamic open override func viewWillTransition(to: CoreFoundation.CGSize, with: some UIKit.UIViewControllerTransitionCoordinator)