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

Tutorial fixes and updates #3003

Merged
merged 9 commits into from
Apr 19, 2024
Merged

Tutorial fixes and updates #3003

merged 9 commits into from
Apr 19, 2024

Conversation

dafurman
Copy link
Contributor

@dafurman dafurman commented Apr 19, 2024

I just went through the written tutorials - this is such a cool format for that style of teaching!

I found some typos and minor points where clarity could be added, so here's a PR for that!

@@ -1,6 +1,8 @@
import ComposableArchitecture
import XCTest

@testable import CounterApp
Copy link
Contributor Author

@dafurman dafurman Apr 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just mimicking what's going on in the Navigation part, where the main app target is imported

@@ -6,6 +6,6 @@ struct ContactDetailView: View {
var body: some View {
Form {
}
.navigationBarTitle(Text(store.contact.name))
.navigationTitle(Text(store.contact.name))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching from the deprecated navigationBarTitle to the newer modifier.

@dafurman
Copy link
Contributor Author

I didn't quite know how to address it in this PR, but I'm wondering if this bit should be rephrased:

The library comes with a variety of tools that mimic SwiftUI's native navigation tools (such
as sheets, popovers, fullscreen covers, alerts, and confirmation dialogs), but they take
ComposableArchitecture/Stores instead of bindings.

Given that the example with the sheet is actually just using the native binding there:

Screenshot 2024-04-19 at 11 29 26 AM

@dafurman dafurman marked this pull request as ready for review April 19, 2024 18:42
@@ -87,7 +87,7 @@ struct InventoryFeature {
> Note: The key path used with `ifLet` focuses on the `@PresentationState` projected value since it
> uses the `$` syntax. Also note that the action uses a
> [case path](http://github.com/pointfreeco/swift-case-paths), which is analogous to key paths but
> tuned for enums, and uses the forward slash syntax.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example above uses the newer backslash syntax 🥳

Copy link
Member

@stephencelis stephencelis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@stephencelis
Copy link
Member

I didn't quite know how to address it in this PR, but I'm wondering if this bit should be rephrased:

Good call! Will fix it up on main.

@stephencelis stephencelis merged commit 83b2c1b into pointfreeco:main Apr 19, 2024
cgrindel-self-hosted-renovate bot referenced this pull request in cgrindel/rules_swift_package_manager Apr 29, 2024
…ure to from: "1.10.0" (#1052)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[pointfreeco/swift-composable-architecture](https://github.com/pointfreeco/swift-composable-architecture)
| minor | `from: "1.9.3"` -> `from: "1.10.0"` |

---

### Release Notes

<details>
<summary>pointfreeco/swift-composable-architecture
(pointfreeco/swift-composable-architecture)</summary>

###
[`v1.10.0`](https://github.com/pointfreeco/swift-composable-architecture/releases/tag/1.10.0)

[Compare
Source](https://github.com/pointfreeco/swift-composable-architecture/compare/1.9.3...1.10.0)

#### What's Changed

- Added: All new state sharing tools, including the `@Shared` property
wrapper and more
([https://github.com/pointfreeco/swift-composable-architecture/pull/2858](https://github.com/pointfreeco/swift-composable-architecture/pull/2858)).
(Thanks [@&#8203;NFulkerson](https://github.com/NFulkerson),
[@&#8203;hallee](https://github.com/hallee),
[@&#8203;pyrtsa](https://github.com/pyrtsa),
[@&#8203;DandyLyons](https://github.com/DandyLyons),
[@&#8203;hiltonc](https://github.com/hiltonc),
[@&#8203;lukeredpath](https://github.com/lukeredpath),
[@&#8203;andtie](https://github.com/andtie),
[@&#8203;AlexKobachiJP](https://github.com/AlexKobachiJP),
[@&#8203;ZevEisenberg](https://github.com/ZevEisenberg), for their
contributions!)
- Updated: Bumped swift-collections to remove `@unchecked` from
`StackState`'s `Sendable` conformance (thanks
[@&#8203;rhysm94](https://github.com/rhysm94),
[https://github.com/pointfreeco/swift-composable-architecture/pull/2997](https://github.com/pointfreeco/swift-composable-architecture/pull/2997)).
- Updated: Bumped swift-custom-dump to avoid a crash and leverage the
latest tools for shared state (thanks
[@&#8203;y-mimura](https://github.com/y-mimura),
[https://github.com/pointfreeco/swift-composable-architecture/pull/3008](https://github.com/pointfreeco/swift-composable-architecture/pull/3008)).
- Infrastructure: Update README.md package addition wording to match
latest Xcode (thanks [@&#8203;dafurman](https://github.com/dafurman),
[https://github.com/pointfreeco/swift-composable-architecture/pull/2998](https://github.com/pointfreeco/swift-composable-architecture/pull/2998)).
- Infrastructure: Tutorial fixes and updates (thanks
[@&#8203;dafurman](https://github.com/dafurman),
[https://github.com/pointfreeco/swift-composable-architecture/pull/3003](https://github.com/pointfreeco/swift-composable-architecture/pull/3003)).

#### New Contributors

- [@&#8203;dafurman](https://github.com/dafurman) made their first
contribution in
[https://github.com/pointfreeco/swift-composable-architecture/pull/2998](https://github.com/pointfreeco/swift-composable-architecture/pull/2998)
- [@&#8203;y-mimura](https://github.com/y-mimura) made their first
contribution in
[https://github.com/pointfreeco/swift-composable-architecture/pull/3008](https://github.com/pointfreeco/swift-composable-architecture/pull/3008)

**Full Changelog**:
pointfreeco/swift-composable-architecture@1.9.3...1.10.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://github.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://github.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDkuNCIsInVwZGF0ZWRJblZlciI6IjM2LjEwOS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants