Skip to content

Commit 0738afa

Browse files
stephencelisactions-user
authored andcommitted
Run swift-format
1 parent 6f9dee7 commit 0738afa

File tree

5 files changed

+13
-6
lines changed

5 files changed

+13
-6
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,16 @@ struct BindingBasicsView: View {
7777
}
7878
.disabled(viewStore.toggleIsOn)
7979

80-
Toggle(isOn: viewStore.binding(get: { $0.toggleIsOn }, send: BindingBasicsAction.toggleChange))
80+
Toggle(
81+
isOn: viewStore.binding(get: { $0.toggleIsOn }, send: BindingBasicsAction.toggleChange)
82+
)
8183
{
8284
Text("Disable other controls")
8385
}
8486

8587
Stepper(
86-
value: viewStore.binding(get: { $0.stepCount }, send: BindingBasicsAction.stepCountChanged),
88+
value: viewStore.binding(
89+
get: { $0.stepCount }, send: BindingBasicsAction.stepCountChanged),
8790
in: 0...100
8891
) {
8992
Text("Max slider value: \(viewStore.stepCount)")

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ struct EffectsCancellationView: View {
9999
}
100100
) {
101101
Stepper(
102-
value: viewStore.binding(get: { $0.count }, send: EffectsCancellationAction.stepperChanged)
102+
value: viewStore.binding(
103+
get: { $0.count }, send: EffectsCancellationAction.stepperChanged)
103104
) {
104105
Text("\(viewStore.count)")
105106
}

Examples/CaseStudies/SwiftUICaseStudies/04-HigherOrderReducers-ReusableFavoriting.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ struct EpisodeView: View {
139139

140140
Spacer()
141141

142-
FavoriteButton(store: self.store.scope(state: { $0.favorite }, action: EpisodeAction.favorite))
142+
FavoriteButton(
143+
store: self.store.scope(state: { $0.favorite }, action: EpisodeAction.favorite))
143144
}
144145
}
145146
}

Examples/Search/Search/SearchView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ struct SearchView: View {
101101
Image(systemName: "magnifyingglass")
102102
TextField(
103103
"New York, San Francisco, ...",
104-
text: viewStore.binding(get: { $0.searchQuery }, send: SearchAction.searchQueryChanged)
104+
text: viewStore.binding(
105+
get: { $0.searchQuery }, send: SearchAction.searchQueryChanged)
105106
)
106107
.textFieldStyle(RoundedBorderTextFieldStyle())
107108
.autocapitalization(.none)

Examples/VoiceMemos/VoiceMemos/VoiceMemos.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ struct VoiceMemoView: View {
368368
HStack {
369369
TextField(
370370
"Untitled, \(dateFormatter.string(from: self.viewStore.date))",
371-
text: self.viewStore.binding(get: { $0.title }, send: VoiceMemoAction.titleTextFieldChanged)
371+
text: self.viewStore.binding(
372+
get: { $0.title }, send: VoiceMemoAction.titleTextFieldChanged)
372373
)
373374

374375
Spacer()

0 commit comments

Comments
 (0)