Skip to content

Commit e854218

Browse files
stephencelisp4checo
authored andcommitted
Run swift-format
(cherry picked from commit 8f19bf88aeb67c33e41e14eefa30f9074ddca013)
1 parent 399dd60 commit e854218

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/ComposableArchitecture/ViewStore.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,8 @@ public final class ViewStore<ViewState, ViewAction> {
491491
) -> Binding<Value> {
492492
@ObservedState var val = get(self.state)
493493
return .init(
494-
get: { [$val] in $val.wrappedValue },
495-
set: { [weak self] in self?.send(valueToAction($0)) }
494+
get: { [$val] in $val.wrappedValue },
495+
set: { [weak self] in self?.send(valueToAction($0)) }
496496
)
497497
}
498498
/// Derives a binding from the store that prevents direct writes to state and instead sends
@@ -780,12 +780,12 @@ final private class ValueWrapper<V>: ObservableObject {
780780

781781
@propertyWrapper private struct ObservedState<Value>: DynamicProperty {
782782
@ObservedObject private var box: ValueWrapper<Value>
783-
783+
784784
var wrappedValue: Value {
785785
get { box.value }
786786
nonmutating set { box.value = newValue }
787787
}
788-
788+
789789
var projectedValue: Binding<Value> {
790790
.init(
791791
get: { wrappedValue },

0 commit comments

Comments
 (0)