Skip to content

Commit ae491c9

Browse files
committed
Fix tutorial indentiation for diffs
1 parent 1b1355c commit ae491c9

File tree

154 files changed

+350
-350
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+350
-350
lines changed

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-01-code-0002.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import ComposableArchitecture
22

33
@Reducer
44
struct CounterFeature {
5-
5+
66
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-01-code-0003.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ import ComposableArchitecture
33
@Reducer
44
struct CounterFeature {
55
struct State {
6-
6+
77
}
8-
8+
99
enum Action {
10-
10+
1111
}
1212
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-01-code-0004.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ struct CounterFeature {
55
struct State {
66
var count = 0
77
}
8-
8+
99
enum Action {
1010
case decrementButtonTapped
1111
case incrementButtonTapped

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-01-code-0005.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ struct CounterFeature {
55
struct State {
66
var count = 0
77
}
8-
8+
99
enum Action {
1010
case decrementButtonTapped
1111
case incrementButtonTapped
1212
}
13-
13+
1414
var body: some ReducerOf<Self> {
1515
Reduce { state, action in
1616
switch action {
1717
case .decrementButtonTapped:
18-
18+
1919
case .incrementButtonTapped:
20-
20+
2121
}
2222
}
2323
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-01-code-0006.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ struct CounterFeature {
55
struct State {
66
var count = 0
77
}
8-
8+
99
enum Action {
1010
case decrementButtonTapped
1111
case incrementButtonTapped
1212
}
13-
13+
1414
var body: some ReducerOf<Self> {
1515
Reduce { state, action in
1616
switch action {
1717
case .decrementButtonTapped:
1818
state.count -= 1
1919
return .none
20-
20+
2121
case .incrementButtonTapped:
2222
state.count += 1
2323
return .none

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-02-code-0002.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
struct CounterView: View {
22
let store: StoreOf<CounterFeature>
3-
3+
44
var body: some View {
55
EmptyView()
66
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-02-code-0003.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
struct CounterView: View {
22
let store: StoreOf<CounterFeature>
3-
3+
44
var body: some View {
55
VStack {
66
Text("0")
@@ -15,7 +15,7 @@ struct CounterView: View {
1515
.padding()
1616
.background(Color.black.opacity(0.1))
1717
.cornerRadius(10)
18-
18+
1919
Button("+") {
2020
}
2121
.font(.largeTitle)

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-02-code-0004-previous.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
struct CounterView: View {
22
let store: StoreOf<CounterFeature>
3-
3+
44
var body: some View {
55
VStack {
66
Text("0")
@@ -15,7 +15,7 @@ struct CounterView: View {
1515
.padding()
1616
.background(Color.black.opacity(0.1))
1717
.cornerRadius(10)
18-
18+
1919
Button("+") {
2020
}
2121
.font(.largeTitle)

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-02-code-0004.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extension CounterFeature.State: Equatable {}
22

33
struct CounterView: View {
44
let store: StoreOf<CounterFeature>
5-
5+
66
var body: some View {
77
WithViewStore(self.store, observe: { $0 }) { viewStore in
88
VStack {
@@ -19,7 +19,7 @@ struct CounterView: View {
1919
.padding()
2020
.background(Color.black.opacity(0.1))
2121
.cornerRadius(10)
22-
22+
2323
Button("+") {
2424
viewStore.send(.incrementButtonTapped)
2525
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/MeetTheComposableArchitecture/01-Essentials/01-YourFirstFeature/01-01-03-code-0003.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ struct MyApp: App {
66
static let store = Store(initialState: CounterFeature.State()) {
77
CounterFeature()
88
}
9-
9+
1010
var body: some Scene {
1111
WindowGroup {
1212
CounterView(store: MyApp.store)

0 commit comments

Comments
 (0)