Closed johankool closed 9 months ago
@johankool Another option is to use the polypill we define here:
Just remove the deprecation availability.
Since this is an Apple bug I'm going to convert to a discussion. We can chat about modifying our deprecation message there, but my worry is I don't think we can validate every Apple API we point folks towards across every platform for every release.
Description
This is about a SwiftUI bug that happens on macOS. I report it here because the deprecation advices to use this code.
In NavigationDestination.swift it says:
Unfortunately this functionality is broken on macOS. If the recommended approach is used nothing happens on macOS when navigating.
Staying with the deprecated approach, kinda works, but not really as it breaks perception/observation.
The workaround I found is that I need a bit of glue code in the store to calculate an isPresented binding and use the
navigationDestination(isPresented:destination:)
variant instead.Checklist
main
branch of this package.Expected behavior
No response
Actual behavior
No response
Steps to reproduce
No response
The Composable Architecture version information
1.8.0
Destination operating system
macOS 14.3.1
Xcode version information
Version 15.2 (15C500b)
Swift Compiler version information