I may not be understanding this right, but when trying to use the new @Environment for what was previously @EnvironmentObject I am unable to use a NavigationPath in a NavigationStack:
@Observable
class AppData {
var presented: NavigationPath = NavigationPath()
}
NavigationStack(path: appData.$presented) {...
Value of type 'AppData' has no member '$presented'
Cannot convert value of type 'NavigationPath' to expected argument type 'Binding'
Moving the $ to the front or removing it does nothing either.