Skip to content

Commit e1c0a52

Browse files
mbrandonwactions-user
authored andcommitted
Run swift-format
1 parent 3d8db94 commit e1c0a52

File tree

1 file changed

+75
-56
lines changed

1 file changed

+75
-56
lines changed

Sources/ComposableArchitecture/SwiftUI/SwitchStore.swift

Lines changed: 75 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,12 @@ public struct Default<Content>: View where Content: View {
124124
extension SwitchStore {
125125
public init<State1, Action1, Content1, DefaultContent>(
126126
_ store: Store<State, Action>,
127-
@ViewBuilder content: @escaping () -> TupleView<(
128-
CaseLet<State, Action, State1, Action1, Content1>,
129-
Default<DefaultContent>
130-
)>
127+
@ViewBuilder content: @escaping () -> TupleView<
128+
(
129+
CaseLet<State, Action, State1, Action1, Content1>,
130+
Default<DefaultContent>
131+
)
132+
>
131133
)
132134
where
133135
Content == WithViewStore<
@@ -176,11 +178,13 @@ extension SwitchStore {
176178

177179
public init<State1, Action1, Content1, State2, Action2, Content2, DefaultContent>(
178180
_ store: Store<State, Action>,
179-
@ViewBuilder content: @escaping () -> TupleView<(
180-
CaseLet<State, Action, State1, Action1, Content1>,
181-
CaseLet<State, Action, State2, Action2, Content2>,
182-
Default<DefaultContent>
183-
)>
181+
@ViewBuilder content: @escaping () -> TupleView<
182+
(
183+
CaseLet<State, Action, State1, Action1, Content1>,
184+
CaseLet<State, Action, State2, Action2, Content2>,
185+
Default<DefaultContent>
186+
)
187+
>
184188
)
185189
where
186190
Content == WithViewStore<
@@ -211,10 +215,12 @@ extension SwitchStore {
211215

212216
public init<State1, Action1, Content1, State2, Action2, Content2>(
213217
_ store: Store<State, Action>,
214-
@ViewBuilder content: @escaping () -> TupleView<(
215-
CaseLet<State, Action, State1, Action1, Content1>,
216-
CaseLet<State, Action, State2, Action2, Content2>
217-
)>,
218+
@ViewBuilder content: @escaping () -> TupleView<
219+
(
220+
CaseLet<State, Action, State1, Action1, Content1>,
221+
CaseLet<State, Action, State2, Action2, Content2>
222+
)
223+
>,
218224
file: StaticString = #file,
219225
line: UInt = #line
220226
)
@@ -225,7 +231,8 @@ extension SwitchStore {
225231
_ConditionalContent<
226232
_ConditionalContent<
227233
CaseLet<State, Action, State1, Action1, Content1>,
228-
CaseLet<State, Action, State2, Action2, Content2>>,
234+
CaseLet<State, Action, State2, Action2, Content2>
235+
>,
229236
Default<_ExhaustivityCheckView<State, Action>>
230237
>
231238
>
@@ -245,12 +252,14 @@ extension SwitchStore {
245252
DefaultContent
246253
>(
247254
_ store: Store<State, Action>,
248-
@ViewBuilder content: @escaping () -> TupleView<(
249-
CaseLet<State, Action, State1, Action1, Content1>,
250-
CaseLet<State, Action, State2, Action2, Content2>,
251-
CaseLet<State, Action, State3, Action3, Content3>,
252-
Default<DefaultContent>
253-
)>
255+
@ViewBuilder content: @escaping () -> TupleView<
256+
(
257+
CaseLet<State, Action, State1, Action1, Content1>,
258+
CaseLet<State, Action, State2, Action2, Content2>,
259+
CaseLet<State, Action, State3, Action3, Content3>,
260+
Default<DefaultContent>
261+
)
262+
>
254263
)
255264
where
256265
Content == WithViewStore<
@@ -286,11 +295,13 @@ extension SwitchStore {
286295

287296
public init<State1, Action1, Content1, State2, Action2, Content2, State3, Action3, Content3>(
288297
_ store: Store<State, Action>,
289-
@ViewBuilder content: @escaping () -> TupleView<(
290-
CaseLet<State, Action, State1, Action1, Content1>,
291-
CaseLet<State, Action, State2, Action2, Content2>,
292-
CaseLet<State, Action, State3, Action3, Content3>
293-
)>,
298+
@ViewBuilder content: @escaping () -> TupleView<
299+
(
300+
CaseLet<State, Action, State1, Action1, Content1>,
301+
CaseLet<State, Action, State2, Action2, Content2>,
302+
CaseLet<State, Action, State3, Action3, Content3>
303+
)
304+
>,
294305
file: StaticString = #file,
295306
line: UInt = #line
296307
)
@@ -327,13 +338,15 @@ extension SwitchStore {
327338
DefaultContent
328339
>(
329340
_ store: Store<State, Action>,
330-
@ViewBuilder content: @escaping () -> TupleView<(
331-
CaseLet<State, Action, State1, Action1, Content1>,
332-
CaseLet<State, Action, State2, Action2, Content2>,
333-
CaseLet<State, Action, State3, Action3, Content3>,
334-
CaseLet<State, Action, State4, Action4, Content4>,
335-
Default<DefaultContent>
336-
)>
341+
@ViewBuilder content: @escaping () -> TupleView<
342+
(
343+
CaseLet<State, Action, State1, Action1, Content1>,
344+
CaseLet<State, Action, State2, Action2, Content2>,
345+
CaseLet<State, Action, State3, Action3, Content3>,
346+
CaseLet<State, Action, State4, Action4, Content4>,
347+
Default<DefaultContent>
348+
)
349+
>
337350
)
338351
where
339352
Content == WithViewStore<
@@ -379,12 +392,14 @@ extension SwitchStore {
379392
State4, Action4, Content4
380393
>(
381394
_ store: Store<State, Action>,
382-
@ViewBuilder content: @escaping () -> TupleView<(
383-
CaseLet<State, Action, State1, Action1, Content1>,
384-
CaseLet<State, Action, State2, Action2, Content2>,
385-
CaseLet<State, Action, State3, Action3, Content3>,
386-
CaseLet<State, Action, State4, Action4, Content4>
387-
)>,
395+
@ViewBuilder content: @escaping () -> TupleView<
396+
(
397+
CaseLet<State, Action, State1, Action1, Content1>,
398+
CaseLet<State, Action, State2, Action2, Content2>,
399+
CaseLet<State, Action, State3, Action3, Content3>,
400+
CaseLet<State, Action, State4, Action4, Content4>
401+
)
402+
>,
388403
file: StaticString = #file,
389404
line: UInt = #line
390405
)
@@ -426,14 +441,16 @@ extension SwitchStore {
426441
DefaultContent
427442
>(
428443
_ store: Store<State, Action>,
429-
@ViewBuilder content: @escaping () -> TupleView<(
430-
CaseLet<State, Action, State1, Action1, Content1>,
431-
CaseLet<State, Action, State2, Action2, Content2>,
432-
CaseLet<State, Action, State3, Action3, Content3>,
433-
CaseLet<State, Action, State4, Action4, Content4>,
434-
CaseLet<State, Action, State5, Action5, Content5>,
435-
Default<DefaultContent>
436-
)>
444+
@ViewBuilder content: @escaping () -> TupleView<
445+
(
446+
CaseLet<State, Action, State1, Action1, Content1>,
447+
CaseLet<State, Action, State2, Action2, Content2>,
448+
CaseLet<State, Action, State3, Action3, Content3>,
449+
CaseLet<State, Action, State4, Action4, Content4>,
450+
CaseLet<State, Action, State5, Action5, Content5>,
451+
Default<DefaultContent>
452+
)
453+
>
437454
)
438455
where
439456
Content == WithViewStore<
@@ -485,13 +502,15 @@ extension SwitchStore {
485502
State5, Action5, Content5
486503
>(
487504
_ store: Store<State, Action>,
488-
@ViewBuilder content: @escaping () -> TupleView<(
489-
CaseLet<State, Action, State1, Action1, Content1>,
490-
CaseLet<State, Action, State2, Action2, Content2>,
491-
CaseLet<State, Action, State3, Action3, Content3>,
492-
CaseLet<State, Action, State4, Action4, Content4>,
493-
CaseLet<State, Action, State5, Action5, Content5>
494-
)>,
505+
@ViewBuilder content: @escaping () -> TupleView<
506+
(
507+
CaseLet<State, Action, State1, Action1, Content1>,
508+
CaseLet<State, Action, State2, Action2, Content2>,
509+
CaseLet<State, Action, State3, Action3, Content3>,
510+
CaseLet<State, Action, State4, Action4, Content4>,
511+
CaseLet<State, Action, State5, Action5, Content5>
512+
)
513+
>,
495514
file: StaticString = #file,
496515
line: UInt = #line
497516
)
@@ -547,10 +566,10 @@ public struct _ExhaustivityCheckView<State, Action>: View {
547566
"""
548567
return VStack(spacing: 17) {
549568
#if os(macOS)
550-
Text("⚠️")
569+
Text("⚠️")
551570
#else
552-
Image(systemName: "exclamationmark.triangle.fill")
553-
.font(.largeTitle)
571+
Image(systemName: "exclamationmark.triangle.fill")
572+
.font(.largeTitle)
554573
#endif
555574

556575
Text(message)

0 commit comments

Comments
 (0)