From f16bad2f20e6cb024e59d4e3ade96f0a815eb889 Mon Sep 17 00:00:00 2001 From: DangWW Date: Mon, 13 Jan 2025 11:19:54 -0800 Subject: [PATCH] space escaping --- Sources/Lasso/SwiftUI+Lasso/SwiftUI+Bindings.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Lasso/SwiftUI+Lasso/SwiftUI+Bindings.swift b/Sources/Lasso/SwiftUI+Lasso/SwiftUI+Bindings.swift index 9a47a36..11f8e16 100644 --- a/Sources/Lasso/SwiftUI+Lasso/SwiftUI+Bindings.swift +++ b/Sources/Lasso/SwiftUI+Lasso/SwiftUI+Bindings.swift @@ -23,14 +23,14 @@ import SwiftUI extension AnyViewStore { public func binding(_ keyPath: WritableKeyPath, - action: @escaping(T) -> ViewAction) -> Binding { + action: @escaping (T) -> ViewAction) -> Binding { return Binding(get: { self.state[keyPath: keyPath] }, set: { value in self.dispatchAction(action(value)) }) } public func binding(_ keyPath: WritableKeyPath, - value: @escaping(SourceValue) -> BoundValue, - action: @escaping(BoundValue) -> ViewAction) -> Binding { + value: @escaping (SourceValue) -> BoundValue, + action: @escaping (BoundValue) -> ViewAction) -> Binding { return Binding(get: { value(self.state[keyPath: keyPath]) }, set: { value in self.dispatchAction(action(value)) }) }