Replies: 2 comments 2 replies
-
That case study is using some older SwiftUI APIs which are deprecated, and are there just as examples for folks still targeting <iOS 16. There are other more modern examples, as well (see "Navigation Stacks"), but we can't show them both off in the same target and avoid the warnings. Because this isn't a library bug, and so I'm going to convert it to a discussion, but if you have specific questions we can help with, let us know! |
Beta Was this translation helpful? Give feedback.
-
Since I am for ios 16, I want to resolve this warning, so I suggest you provide an example for ios 16 and above, thank you. |
Beta Was this translation helpful? Give feedback.
-
Description
How to resolve warning in 04-Navigation-Lists-NavigateAndLoad.swift file:
struct NavigateAndLoadListView: View {
@bindable var store: StoreOf
}
the warning is:
'init(_:tag:selection:destination:)' was deprecated in iOS 16.0: use NavigationLink(value:label:), or navigationDestination(isPresented:destination:), inside a NavigationStack or NavigationSplitView
Checklist
main
branch of this package.Expected behavior
No response
Actual behavior
No response
Reproducing project
No response
The Composable Architecture version information
No response
Destination operating system
No response
Xcode version information
No response
Swift Compiler version information
No response
Beta Was this translation helpful? Give feedback.
All reactions