From 322e888029fb2aa28324043293dd0a2057bc3be0 Mon Sep 17 00:00:00 2001 From: stephencelis Date: Thu, 7 Dec 2023 20:53:07 +0000 Subject: [PATCH] Run swift-format --- Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift | 4 ++-- .../ComposableArchitecture/SwiftUI/NavigationStackStore.swift | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift b/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift index 9426c8d09dc3..88da5132e27f 100644 --- a/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift +++ b/Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift @@ -117,7 +117,7 @@ public struct ForEachStore< content( store.scope( state: { $0[id: id]! }, - id: store.id(state: \.[id: id]!, action: \.[id: id]), + id: store.id(state: \.[id:id]!, action: \.[id:id]), action: { .element(id: id, action: $0) }, isInvalid: { !$0.ids.contains(id) }, removeDuplicates: nil @@ -173,7 +173,7 @@ public struct ForEachStore< content( store.scope( state: { $0[id: id]! }, - id: store.id(state: \.[id: id]!, action: \.[id: id]), + id: store.id(state: \.[id:id]!, action: \.[id:id]), action: { (id, $0) }, isInvalid: { !$0.ids.contains(id) }, removeDuplicates: nil diff --git a/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift b/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift index 896e089b5e44..c0bdc7acb754 100644 --- a/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift +++ b/Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift @@ -33,7 +33,7 @@ public struct NavigationStackStore store .scope( state: { $0[id: component.id]! }, - id: store.id(state: \.[id: component.id]!, action: \.[id: component.id]), + id: store.id(state: \.[id:component.id]!, action: \.[id:component.id]), action: { .element(id: component.id, action: $0) }, isInvalid: { !$0.ids.contains(component.id) }, removeDuplicates: nil @@ -69,7 +69,7 @@ public struct NavigationStackStore store .scope( state: { $0[id: component.id]! }, - id: store.id(state: \.[id: component.id]!, action: \.[id: component.id]), + id: store.id(state: \.[id:component.id]!, action: \.[id:component.id]), action: { .element(id: component.id, action: $0) }, isInvalid: { !$0.ids.contains(component.id) }, removeDuplicates: nil