Skip to content

Commit 0a38f2c

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent b979b44 commit 0a38f2c

9 files changed

+15
-13
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
@@ -100,7 +100,7 @@ struct EffectsBasicsView: View {
100100

101101
Text("\(viewStore.count)")
102102
.monospacedDigit()
103-
103+
104104
Button {
105105
viewStore.send(.incrementButtonTapped)
106106
} label: {

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

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

9393
if viewStore.isTriviaRequestInFlight {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct RefreshableView: View {
9090

9191
Text("\(viewStore.count)")
9292
.monospacedDigit()
93-
93+
9494
Button {
9595
viewStore.send(.incrementButtonTapped)
9696
} label: {

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
}

0 commit comments

Comments
 (0)