Skip to content

Commit 9653df0

Browse files
mluisbrownactions-user
authored andcommitted
Run swift-format
1 parent 5e26ae9 commit 9653df0

File tree

16 files changed

+2343
-2336
lines changed

16 files changed

+2343
-2336
lines changed

Examples/CaseStudies/SwiftUICaseStudies/00-Core.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ let rootReducer = Reducer<RootState, RootAction, RootEnvironment>.combine(
130130
),
131131
.init { state, action, environment in
132132
#if compiler(>=5.4)
133-
return bindingFormReducer
133+
return
134+
bindingFormReducer
134135
.pullback(
135136
state: \.bindingForm,
136137
action: /RootAction.bindingForm,
@@ -179,7 +180,8 @@ let rootReducer = Reducer<RootState, RootAction, RootEnvironment>.combine(
179180
),
180181
.init { state, action, environment in
181182
#if compiler(>=5.5)
182-
return focusDemoReducer
183+
return
184+
focusDemoReducer
183185
.pullback(
184186
state: \.focusDemo,
185187
action: /RootAction.focusDemo,

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ enum AlertAndConfirmationDialogAction: Equatable {
3737
struct AlertAndConfirmationDialogEnvironment {}
3838

3939
let alertAndConfirmationDialogReducer = Reducer<
40-
AlertAndConfirmationDialogState, AlertAndConfirmationDialogAction, AlertAndConfirmationDialogEnvironment
40+
AlertAndConfirmationDialogState, AlertAndConfirmationDialogAction,
41+
AlertAndConfirmationDialogEnvironment
4142
> { state, action, _ in
4243

4344
switch action {
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#if canImport(SwiftUI)
2-
import SwiftUI
2+
import SwiftUI
33

4-
@available(iOS 13, macOS 10.15, macCatalyst 13, tvOS 13, watchOS 6, *)
5-
extension Binding {
6-
func isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
7-
.init(
8-
get: { self.wrappedValue != nil },
9-
set: { isPresent, transaction in
10-
guard !isPresent else { return }
11-
self.transaction(transaction).wrappedValue = nil
12-
}
13-
)
4+
@available(iOS 13, macOS 10.15, macCatalyst 13, tvOS 13, watchOS 6, *)
5+
extension Binding {
6+
func isPresent<Wrapped>() -> Binding<Bool> where Value == Wrapped? {
7+
.init(
8+
get: { self.wrappedValue != nil },
9+
set: { isPresent, transaction in
10+
guard !isPresent else { return }
11+
self.transaction(transaction).wrappedValue = nil
12+
}
13+
)
14+
}
1415
}
15-
}
1616
#endif

0 commit comments

Comments
 (0)