Skip to content

Commit ca76bc4

Browse files
committed
Run swift-format
1 parent 3b5bfcd commit ca76bc4

23 files changed

+1237
-1235
lines changed

Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-Bindings-Basics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ struct BindingBasicsView: View {
7979
Text(alternate(viewStore.text))
8080
}
8181
.disabled(viewStore.toggleIsOn)
82-
82+
8383
Toggle(
8484
"Disable other controls",
8585
isOn: viewStore.binding(get: \.toggleIsOn, send: BindingBasicsAction.toggleChanged)

Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-Composition-TwoCounters.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ struct TwoCountersView: View {
4242
Section {
4343
AboutView(readMe: readMe)
4444
}
45-
45+
4646
HStack {
4747
Text("Counter 1")
4848
Spacer()
4949
CounterView(
5050
store: self.store.scope(state: \.counter1, action: TwoCountersAction.counter1)
5151
)
5252
}
53-
53+
5454
HStack {
5555
Text("Counter 2")
5656
Spacer()

Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-Counter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ struct CounterView: View {
4545

4646
Text("\(viewStore.count)")
4747
.monospacedDigit()
48-
48+
4949
Button {
5050
viewStore.send(.incrementButtonTapped)
5151
} label: {

Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-OptionalState.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ struct OptionalBasicsView: View {
6868
action: OptionalBasicsAction.optionalCounter
6969
),
7070
then: { store in
71-
Text(template: "`CounterState` is non-`nil`")
72-
CounterView(store: store)
71+
Text(template: "`CounterState` is non-`nil`")
72+
CounterView(store: store)
7373
.buttonStyle(.borderless)
7474
.frame(maxWidth: .infinity)
7575
},

Examples/CaseStudies/SwiftUICaseStudies/01-GettingStarted-SharedState.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ struct SharedStateCounterView: View {
201201

202202
Text("\(viewStore.count)")
203203
.monospacedDigit()
204-
204+
205205
Button {
206206
viewStore.send(.incrementButtonTapped)
207207
} label: {

Examples/CaseStudies/SwiftUICaseStudies/02-Effects-Basics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ struct EffectsBasicsView: View {
101101

102102
Text("\(viewStore.count)")
103103
.monospacedDigit()
104-
104+
105105
Button {
106106
viewStore.send(.incrementButtonTapped)
107107
} label: {

Examples/CaseStudies/SwiftUICaseStudies/02-Effects-Cancellation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct EffectsCancellationView: View {
8888
Section {
8989
Stepper(
9090
"\(viewStore.count)",
91-
value: viewStore.binding( get: \.count, send: EffectsCancellationAction.stepperChanged)
91+
value: viewStore.binding(get: \.count, send: EffectsCancellationAction.stepperChanged)
9292
)
9393

9494
if viewStore.isTriviaRequestInFlight {

Examples/CaseStudies/SwiftUICaseStudies/02-Effects-Refreshable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ struct RefreshableView: View {
9191

9292
Text("\(viewStore.count)")
9393
.monospacedDigit()
94-
94+
9595
Button {
9696
viewStore.send(.incrementButtonTapped)
9797
} label: {
@@ -126,7 +126,7 @@ struct Refreshable_Previews: PreviewProvider {
126126
reducer: refreshableReducer,
127127
environment: RefreshableEnvironment(
128128
fact: .live,
129-
mainQueue: QueueScheduler.main
129+
mainQueue: QueueScheduler.main
130130
)
131131
)
132132
)

Examples/CaseStudies/SwiftUICaseStudies/02-Effects-SystemEnvironment.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ struct MultipleDependenciesView: View {
110110
Text(
111111
template: """
112112
The actions below make use of the dependencies in the `SystemEnvironment`.
113-
""", .caption)
113+
""", .caption
114+
)
114115
.textCase(.none)
115116
}
116117

@@ -131,10 +132,11 @@ struct MultipleDependenciesView: View {
131132
template: """
132133
The actions below make use of the custom environment for this screen, which holds a \
133134
dependency for fetching a random number.
134-
""", .caption)
135+
""", .caption
136+
)
135137
.textCase(.none)
136138
}
137-
139+
138140
}
139141
.buttonStyle(.borderless)
140142
}

Examples/CaseStudies/SwiftUICaseStudiesTests/01-GettingStarted-AnimationsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class AnimationTests: XCTestCase {
9292
secondaryButton: .cancel(TextState("Cancel"))
9393
)
9494
}
95-
95+
9696
store.send(.resetConfirmationButtonTapped) {
9797
$0 = AnimationsState()
9898
}

0 commit comments

Comments
 (0)