From 85eb525714ef5890de468cd0adf17ece3e878204 Mon Sep 17 00:00:00 2001 From: Lody Date: Tue, 16 Sep 2025 02:47:12 +0900 Subject: [PATCH] Fix use #filePath for filePath defaults (#3773) - Use #filePath (not #fileID) as the default for filePath in Binding.scope, ObservedObject.Wrapper.scope, and SwiftUI.Bindable.scope. - This corrects issue-reporting metadata so diagnostics reference the correct file path. --- .../Observation/Store+Observation.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/ComposableArchitecture/Observation/Store+Observation.swift b/Sources/ComposableArchitecture/Observation/Store+Observation.swift index 76f9fe408c19..c5af23d1f97c 100644 --- a/Sources/ComposableArchitecture/Observation/Store+Observation.swift +++ b/Sources/ComposableArchitecture/Observation/Store+Observation.swift @@ -175,7 +175,7 @@ extension Binding { state: KeyPath, action: CaseKeyPath>, fileID: StaticString = #fileID, - filePath: StaticString = #fileID, + filePath: StaticString = #filePath, line: UInt = #line, column: UInt = #column ) -> Binding?> @@ -203,7 +203,7 @@ extension ObservedObject.Wrapper { state: KeyPath, action: CaseKeyPath>, fileID: StaticString = #fileID, - filePath: StaticString = #fileID, + filePath: StaticString = #filePath, line: UInt = #line, column: UInt = #column ) -> Binding?> @@ -293,7 +293,7 @@ extension SwiftUI.Bindable { state: KeyPath, action: CaseKeyPath>, fileID: StaticString = #fileID, - filePath: StaticString = #fileID, + filePath: StaticString = #filePath, line: UInt = #line, column: UInt = #column ) -> Binding?>