Skip to content

Commit 4d07372

Browse files
authored
Some tutorial fixes. (#2109)
* Some tutorial fixes. * wip * wip * wip
1 parent 2ff0e5d commit 4d07372

File tree

2 files changed

+26
-20
lines changed

2 files changed

+26
-20
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ iOS word search game built in SwiftUI and the Composable Architecture.
8585

8686
## Basic Usage
8787

88+
> **Note**
89+
> For a step-by-step interactive tutorial, be sure to check out [Meet the Composable
90+
> Architecture][meet-tca].
91+
8892
To build a feature using the Composable Architecture you define some types and values that model
8993
your domain:
9094

@@ -548,13 +552,14 @@ advanced usages.
548552
The documentation for releases and `main` are available here:
549553

550554
* [`main`](https://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture)
551-
* [0.51.0](https://pointfreeco.github.io/swift-composable-architecture/0.51.0/documentation/composablearchitecture/)
555+
* [0.53.0](https://pointfreeco.github.io/swift-composable-architecture/0.53.0/documentation/composablearchitecture/)
552556

553557
<details>
554558
<summary>
555559
Other versions
556560
</summary>
557561

562+
* [0.52.0](https://pointfreeco.github.io/swift-composable-architecture/0.52.0/documentation/composablearchitecture/)
558563
* [0.50.0](https://pointfreeco.github.io/swift-composable-architecture/0.50.0/documentation/composablearchitecture/)
559564
* [0.49.0](https://pointfreeco.github.io/swift-composable-architecture/0.49.0/documentation/composablearchitecture/)
560565
* [0.48.0](https://pointfreeco.github.io/swift-composable-architecture/0.48.0/documentation/composablearchitecture/)
@@ -714,3 +719,4 @@ This library is released under the MIT license. See [LICENSE](LICENSE) for detai
714719
[concurrency-article]: https://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/swiftconcurrency
715720
[bindings-article]: https://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/bindings
716721
[migrating-article]: https://pointfreeco.github.io/swift-composable-architecture/main/documentation/composablearchitecture/migratingtothereducerprotocol
722+
[meet-tca]: https://pointfreeco.github.io/swift-composable-architecture/main/tutorials/meetcomposablearchitecture

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

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@ struct CounterView: View {
22
let store: StoreOf<CounterFeature>
33

44
var body: some View {
5-
VStack {
6-
Text("0")
7-
.font(.largeTitle)
8-
.padding()
9-
.background(Color.black.opacity(0.1))
10-
.cornerRadius(10)
11-
HStack {
12-
Button("-") {
13-
}
14-
.font(.largeTitle)
15-
.padding()
16-
.background(Color.black.opacity(0.1))
17-
.cornerRadius(10)
5+
VStack {
6+
Text("0")
7+
.font(.largeTitle)
8+
.padding()
9+
.background(Color.black.opacity(0.1))
10+
.cornerRadius(10)
11+
HStack {
12+
Button("-") {
13+
}
14+
.font(.largeTitle)
15+
.padding()
16+
.background(Color.black.opacity(0.1))
17+
.cornerRadius(10)
1818

19-
Button("+") {
19+
Button("+") {
20+
}
21+
.font(.largeTitle)
22+
.padding()
23+
.background(Color.black.opacity(0.1))
24+
.cornerRadius(10)
2025
}
21-
.font(.largeTitle)
22-
.padding()
23-
.background(Color.black.opacity(0.1))
24-
.cornerRadius(10)
2526
}
26-
}
2727
}
2828
}

0 commit comments

Comments
 (0)