// 故意编译失败:`$` 只对属性包装器生效,普通 let 没有投影值。 // 复现:swiftc -typecheck Diagnostics/MissingBindingProjection.swift import SwiftUI struct Bad: View { private let navigation = NavigationModel() var body: some View { NavigationStack(path: $navigation.path) { Text("x") } } } struct NavigationModel { var path: [String] = [] }