Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in the Meet the Composable Architecture tutorial #3193

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
sending actions to, the `store`.

@Step {
We can read read a property of state directly from the `store` via dynamic member lookup,
We can read a property of state directly from the `store` via dynamic member lookup,
and we can send actions to the `store` via ``ComposableArchitecture/Store/send(_:)``.

@Code(name: "CounterFeature.swift", file: 01-01-02-code-0004.swift)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ struct CounterFeature {
return .run { [count = state.count] send in
let (data, _) = try await URLSession.shared
.data(from: URL(string: "http://numbersapi.com/\(count)")!)
let fact = String(decoding: data, as: UTF8.self)
let fact = String(decoding: data, as: UTF8.self)!
await send(.factResponse(fact))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@
and it's the place where it is appropriate to make live network requests.

> Note: Technically the dependency management system in the Composable Architecture is
> provided by another library of our, [swift-dependencies][swift-dependencies]. We split
> provided by another library of ours, [swift-dependencies][swift-dependencies]. We split
> that library out of the Composable Architecture once it became clear that it could be
> useful even in vanilla SwiftUI and UIKit applications.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
}

@Step {
Add a form to the view with a text fielid for editing the name of the contact. We can
Add a form to the view with a text field for editing the name of the contact. We can
use the dynamic member lookup on `$store` to describe what piece of state you want to
drive the binding, and then you can use the `sending` method to describe which action
you want to send when the binding is written to.
Expand Down Expand Up @@ -119,7 +119,7 @@
Integrate the features' states together by using the ``ComposableArchitecture/Presents()``
macro to hold onto an optional value.

A `nil` value represents that the "Add Contacts" feature is not presented, and a non-`nil`
A `nil` value represents that the "Add Contact" feature is not presented, and a non-`nil`
value represents that it is presented.

@Code(name: "ContactsFeature.swift", file: 02-01-02-code-0001.swift)
Expand Down Expand Up @@ -221,7 +221,7 @@
to the `AddContactView`.

> Note: If you are targeting older platforms and do not have access to `@Bindable`, you can
> instead use `@Perception.Bindable``, which comes with the library.
> instead use `@Perception.Bindable`, which comes with the library.

@Code(name: "ContactsFeature.swift", file: 02-01-02-code-0009.swift)
}
Expand Down Expand Up @@ -262,7 +262,7 @@
the `AddContactFeature` to insert a new contact directly into the parent collection without
any further steps. This can be powerful, but we will use delegate actions for this tutorial.
To read more about `@Shared` see the <doc:SharingState> article, and see the
<doc:BuildingSyncUps> tutorial where we see this technique, in particular in
<doc:BuildingSyncUps> tutorial where we use this technique, in particular in
<doc:EditingAndDeletingSyncUp#Deleting-the-sync-up> section.

@Step {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
@Section(title: "Testing the add contact flow") {
@ContentAndMedia {
The first functionality we will test is adding a new contact. This entails emulating the
entire use flow of the user tapping the "+" button, typing into the name text field,
entire user flow of the user tapping the "+" button, typing into the name text field,
tapping the "Save" button, and confirming that the sheet is dismissed and the new contact
is added to the list.
}
Expand Down