Skip to content

Commit 4254c84

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 4514a16 commit 4254c84

File tree

2 files changed

+39
-37
lines changed

2 files changed

+39
-37
lines changed

Examples/CaseStudies/SwiftUICaseStudies/00-RootView.swift

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,13 @@ struct RootView: View {
146146

147147
Section {
148148
NavigationLink("Reusable favoriting component") {
149-
Demo(store: Store(
150-
initialState: Episodes.State(episodes: .mocks)
151-
) {
152-
Episodes()
153-
}) { store in
149+
Demo(
150+
store: Store(
151+
initialState: Episodes.State(episodes: .mocks)
152+
) {
153+
Episodes()
154+
}
155+
) { store in
154156
EpisodesView(store: store)
155157
}
156158
}

Tests/ComposableArchitectureMacrosTests/ReducerMacroTests.swift

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -388,53 +388,53 @@
388388
}
389389

390390
func testEnum_Empty_AccessControl_Package() {
391-
assertMacro {
392-
"""
393-
@Reducer
394-
package enum Destination {
395-
}
396-
"""
397-
} expansion: {
398-
"""
399-
package enum Destination {
391+
assertMacro {
392+
"""
393+
@Reducer
394+
package enum Destination {
395+
}
396+
"""
397+
} expansion: {
398+
"""
399+
package enum Destination {
400400
401-
@CasePathable
402-
@dynamicMemberLookup
403-
@ObservableState
401+
@CasePathable
402+
@dynamicMemberLookup
403+
@ObservableState
404404
405-
package enum State: ComposableArchitecture.CaseReducerState {
405+
package enum State: ComposableArchitecture.CaseReducerState {
406406
407-
package typealias StateReducer = Destination
407+
package typealias StateReducer = Destination
408408
409-
}
409+
}
410410
411-
@CasePathable
411+
@CasePathable
412412
413-
package enum Action {
413+
package enum Action {
414414
415-
}
415+
}
416416
417-
@ComposableArchitecture.ReducerBuilder<Self.State, Self.Action>
417+
@ComposableArchitecture.ReducerBuilder<Self.State, Self.Action>
418418
419-
package static var body: ComposableArchitecture.EmptyReducer<Self.State, Self.Action> {
420-
ComposableArchitecture.EmptyReducer<Self.State, Self.Action>()
421-
}
419+
package static var body: ComposableArchitecture.EmptyReducer<Self.State, Self.Action> {
420+
ComposableArchitecture.EmptyReducer<Self.State, Self.Action>()
421+
}
422422
423-
package enum CaseScope {
423+
package enum CaseScope {
424424
425-
}
425+
}
426426
427-
package static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
428-
switch store.state {
427+
package static func scope(_ store: ComposableArchitecture.Store<Self.State, Self.Action>) -> CaseScope {
428+
switch store.state {
429429
430-
}
431-
}
432-
}
430+
}
431+
}
432+
}
433433
434-
extension Destination: ComposableArchitecture.CaseReducer, ComposableArchitecture.Reducer {
435-
}
436-
"""
434+
extension Destination: ComposableArchitecture.CaseReducer, ComposableArchitecture.Reducer {
437435
}
436+
"""
437+
}
438438
}
439439

440440
func testEnum_Empty_AccessControl_Public() {

0 commit comments

Comments
 (0)