Skip to content

Commit 292546d

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent d4d1df8 commit 292546d

File tree

6 files changed

+47
-43
lines changed

6 files changed

+47
-43
lines changed

Sources/ComposableArchitecture/Observation/IdentifiedArray+Observation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ public struct _StoreCollection<ID: Hashable & Sendable, State, Action>: RandomAc
135135
IfLetCore(
136136
base: core,
137137
cachedState: self.data[position],
138-
stateKeyPath: \.[id:elementID],
139-
actionKeyPath: \.[id:elementID]
138+
stateKeyPath: \.[id: elementID],
139+
actionKeyPath: \.[id: elementID]
140140
)
141141
}
142142
return self.store.scope(id: scopeID, childCore: open(self.store.core))

Sources/ComposableArchitecture/Observation/NavigationStack+Observation.swift

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -197,13 +197,13 @@ public struct _NavigationDestinationViewModifier<
197197
let id = store.id(
198198
state:
199199
\.[
200-
id:component.id,
201-
fileID:_HashableStaticString(rawValue: fileID),
202-
filePath:_HashableStaticString(rawValue: filePath),
203-
line:line,
204-
column:column
200+
id: component.id,
201+
fileID: _HashableStaticString(rawValue: fileID),
202+
filePath: _HashableStaticString(rawValue: filePath),
203+
line: line,
204+
column: column
205205
],
206-
action: \.[id:component.id]
206+
action: \.[id: component.id]
207207
)
208208
@MainActor
209209
func open(
@@ -212,14 +212,15 @@ public struct _NavigationDestinationViewModifier<
212212
IfLetCore(
213213
base: core,
214214
cachedState: component.element,
215-
stateKeyPath: \.[
216-
id:component.id,
217-
fileID:_HashableStaticString(rawValue: fileID),
218-
filePath:_HashableStaticString(rawValue: filePath),
219-
line:line,
220-
column:column
221-
],
222-
actionKeyPath: \.[id:component.id]
215+
stateKeyPath:
216+
\.[
217+
id: component.id,
218+
fileID: _HashableStaticString(rawValue: fileID),
219+
filePath: _HashableStaticString(rawValue: filePath),
220+
line: line,
221+
column: column
222+
],
223+
actionKeyPath: \.[id: component.id]
223224
)
224225
}
225226
return destination(store.scope(id: id, childCore: open(store.core)))

Sources/ComposableArchitecture/Store.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ public final class Store<State, Action> {
373373
self.parentCancellable = subscribeToDidSet(stateType)
374374
}
375375
}
376-
376+
377377
convenience init<R: Reducer<State, Action>>(
378378
initialState: R.State,
379379
reducer: R

Sources/ComposableArchitecture/SwiftUI/ForEachStore.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ public struct ForEachStore<
142142
IfLetCore(
143143
base: core,
144144
cachedState: element,
145-
stateKeyPath: \.[id:id],
146-
actionKeyPath: \.[id:id]
145+
stateKeyPath: \.[id: id],
146+
actionKeyPath: \.[id: id]
147147
)
148148
}
149149

@@ -214,8 +214,8 @@ public struct ForEachStore<
214214
IfLetCore(
215215
base: core,
216216
cachedState: element,
217-
stateKeyPath: \.[id:id],
218-
actionKeyPath: \.[id:id]
217+
stateKeyPath: \.[id: id],
218+
actionKeyPath: \.[id: id]
219219
)
220220
}
221221

Sources/ComposableArchitecture/SwiftUI/NavigationStackStore.swift

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public struct NavigationStackStore<State, Action, Root: View, Destination: View>
6161
let id = store.id(
6262
state:
6363
\.[
64-
id :component.id,
64+
id: component.id,
6565
fileID: _HashableStaticString(rawValue: fileID),
6666
filePath: _HashableStaticString(rawValue: filePath),
6767
line: line,
@@ -76,13 +76,14 @@ public struct NavigationStackStore<State, Action, Root: View, Destination: View>
7676
IfLetCore(
7777
base: core,
7878
cachedState: component.element,
79-
stateKeyPath: \.[
80-
id: component.id,
81-
fileID: _HashableStaticString(rawValue: fileID),
82-
filePath: _HashableStaticString(rawValue: filePath),
83-
line: line,
84-
column: column
85-
],
79+
stateKeyPath:
80+
\.[
81+
id: component.id,
82+
fileID: _HashableStaticString(rawValue: fileID),
83+
filePath: _HashableStaticString(rawValue: filePath),
84+
line: line,
85+
column: column
86+
],
8687
actionKeyPath: \.[id: component.id]
8788
)
8889
}
@@ -145,13 +146,14 @@ public struct NavigationStackStore<State, Action, Root: View, Destination: View>
145146
IfLetCore(
146147
base: core,
147148
cachedState: component.element,
148-
stateKeyPath: \.[
149-
id: component.id,
150-
fileID: _HashableStaticString(rawValue: fileID),
151-
filePath: _HashableStaticString(rawValue: filePath),
152-
line: line,
153-
column: column
154-
],
149+
stateKeyPath:
150+
\.[
151+
id: component.id,
152+
fileID: _HashableStaticString(rawValue: fileID),
153+
filePath: _HashableStaticString(rawValue: filePath),
154+
line: line,
155+
column: column
156+
],
155157
actionKeyPath: \.[id: component.id]
156158
)
157159
}

Sources/ComposableArchitecture/UIKit/NavigationStackControllerUIKit.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@
6161
IfLetCore(
6262
base: core,
6363
cachedState: component.element,
64-
stateKeyPath: \.[
65-
id: component.id,
66-
fileID: _HashableStaticString(rawValue: fileID),
67-
filePath: _HashableStaticString(rawValue: filePath),
68-
line: line,
69-
column: column
70-
],
64+
stateKeyPath:
65+
\.[
66+
id: component.id,
67+
fileID: _HashableStaticString(rawValue: fileID),
68+
filePath: _HashableStaticString(rawValue: filePath),
69+
line: line,
70+
column: column
71+
],
7172
actionKeyPath: \.[id: component.id]
7273
)
7374
}

0 commit comments

Comments
 (0)