mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-24 12:14:25 +01:00
Run swift-format
This commit is contained in:
committed by
github-actions[bot]
parent
daf41b3370
commit
461ee90b74
@@ -54,7 +54,8 @@ public struct BindingState<Value> {
|
||||
@available(
|
||||
*,
|
||||
deprecated,
|
||||
message: """
|
||||
message:
|
||||
"""
|
||||
Chaining onto properties of bindable state is deprecated. Push '@BindingState' use to the child state, instead.
|
||||
"""
|
||||
)
|
||||
@@ -378,7 +379,9 @@ extension ViewStore where ViewAction: BindableAction, ViewAction.State == ViewSt
|
||||
debugger.wasCalled = true
|
||||
}
|
||||
#else
|
||||
let set: @Sendable (inout ViewState) -> Void = { $0[keyPath: keyPath].wrappedValue = value }
|
||||
let set: @Sendable (inout ViewState) -> Void = {
|
||||
$0[keyPath: keyPath].wrappedValue = value
|
||||
}
|
||||
#endif
|
||||
return .binding(.init(keyPath: keyPath, set: set, value: value))
|
||||
}
|
||||
@@ -412,7 +415,9 @@ extension ViewStore where ViewAction: BindableAction, ViewAction.State == ViewSt
|
||||
debugger.wasCalled = true
|
||||
}
|
||||
#else
|
||||
let set: @Sendable (inout ViewState) -> Void = { $0[keyPath: keyPath].wrappedValue = value }
|
||||
let set: @Sendable (inout ViewState) -> Void = {
|
||||
$0[keyPath: keyPath].wrappedValue = value
|
||||
}
|
||||
#endif
|
||||
return .binding(.init(keyPath: keyPath, set: set, value: value))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user